granny Class Reference

file : ../lua/lib.granny.lua (this is just a pseudo class used for grouping global functions) More...

List of all members.

Static Public Member Functions

static mixed CreateGrannyLoader (mixed loadertype, mixed base_file, mixed localisation_file, mixed bWarnOnMissingFile)
static mixed GrannyShowNo3DDataError (mixed bodyid)
static mixed GetOrCreateSkeleton (mixed bodyid)
static mixed LoadGrannyAnim (mixed bodyid, mixed animid, mixed skeleton, mixed bodypartsamples)
 retrieves or creates a granny animation and loads it into the skeleton used for this bodytype
static mixed GetAnimPath (mixed mobileartid, mixed animid)
static mixed GetAnimName (mixed mobileartid, mixed animid)
static mixed LoadGrannyAnimInfo (mixed filepath)
 loads an anim info file, like Monster.lst
static mixed IsBodyIDFemale (mixed bodyid)
static mixed IsBodyIDHuman (mixed bodyid)
static mixed GrannyTextureHook (mixed x)
static mixed GetGrannyTextureMaskName (mixed texname)
static mixed GetGrannyMat (mixed modelid, mixed hue, mixed mygranny)
static mixed CheckGrannyModel (mixed granny)
 some tests if the granny model format is as expected (for models, not for anims)
static mixed GetGrannyParamGroups (mixed granny)
static mixed GetGrannyTextureName (mixed granny, mixed index)
 index is 0 by default, more than one texture per granny is currently not supported
static mixed GetGrannyMeshName (mixed modelid, mixed skeletonname, mixed hue)
static mixed GetGrannyModelLoader (mixed modelid)
static mixed LoadGrannyModelInfo (mixed filepath)
static mixed GetGrannyModelInfo (mixed modelid, mixed bAllowBroken)
static mixed GetGrannyFilePath (mixed modelid, mixed bAllowBroken)
static mixed TestGranny (mixed modelid)


Detailed Description

file : ../lua/lib.granny.lua (this is just a pseudo class used for grouping global functions)

Definition at line 4279 of file lua_pseudo_code.cpp.


Member Function Documentation

static mixed granny::CreateGrannyLoader ( mixed  loadertype,
mixed  base_file,
mixed  localisation_file,
mixed  bWarnOnMissingFile 
) [inline, static]

Definition at line 4281 of file lua_pseudo_code.cpp.

static mixed granny::GrannyShowNo3DDataError ( mixed  bodyid  )  [inline, static]

Definition at line 4283 of file lua_pseudo_code.cpp.

static mixed granny::GetOrCreateSkeleton ( mixed  bodyid  )  [inline, static]

retrieves or creates a skeleton and fills it with bones from the first animation local skeleton = GetOrCreateSkeleton(bodyid) create the skeleton before creating any entities of this bodyid

Definition at line 4288 of file lua_pseudo_code.cpp.

static mixed granny::LoadGrannyAnim ( mixed  bodyid,
mixed  animid,
mixed  skeleton,
mixed  bodypartsamples 
) [inline, static]

retrieves or creates a granny animation and loads it into the skeleton used for this bodytype

Definition at line 4291 of file lua_pseudo_code.cpp.

static mixed granny::GetAnimPath ( mixed  mobileartid,
mixed  animid 
) [inline, static]

Definition at line 4293 of file lua_pseudo_code.cpp.

static mixed granny::GetAnimName ( mixed  mobileartid,
mixed  animid 
) [inline, static]

GetAnimName(400,23) looks in Human.lst for animid 23 and returns "Horse_Walk_01" determines "type" (human,animal,monster,sea,other) from the second column in the Models.txt Human.lst : 23 Horse_Walk_01

Definition at line 4298 of file lua_pseudo_code.cpp.

static mixed granny::LoadGrannyAnimInfo ( mixed  filepath  )  [inline, static]

loads an anim info file, like Monster.lst

Definition at line 4301 of file lua_pseudo_code.cpp.

static mixed granny::IsBodyIDFemale ( mixed  bodyid  )  [inline, static]

##### ##### ##### ##### ##### rest returns true if female

Definition at line 4305 of file lua_pseudo_code.cpp.

static mixed granny::IsBodyIDHuman ( mixed  bodyid  )  [inline, static]

Definition at line 4307 of file lua_pseudo_code.cpp.

static mixed granny::GrannyTextureHook ( mixed  x  )  [inline, static]

Definition at line 4309 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyTextureMaskName ( mixed  texname  )  [inline, static]

takes the result of GetGrannyTextureName as paramter transforms Ut128_Hat_Wide_Brim.tga into Ut128_Hat_Wide_Brim_M.tga assumes suffixlength = 4 (.tga)

Definition at line 4314 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyMat ( mixed  modelid,
mixed  hue,
mixed  mygranny 
) [inline, static]

Definition at line 4316 of file lua_pseudo_code.cpp.

static mixed granny::CheckGrannyModel ( mixed  granny  )  [inline, static]

some tests if the granny model format is as expected (for models, not for anims)

Definition at line 4319 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyParamGroups ( mixed  granny  )  [inline, static]

Definition at line 4321 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyTextureName ( mixed  granny,
mixed  index 
) [inline, static]

index is 0 by default, more than one texture per granny is currently not supported

Definition at line 4324 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyMeshName ( mixed  modelid,
mixed  skeletonname,
mixed  hue 
) [inline, static]

Definition at line 4326 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyModelLoader ( mixed  modelid  )  [inline, static]

Definition at line 4328 of file lua_pseudo_code.cpp.

static mixed granny::LoadGrannyModelInfo ( mixed  filepath  )  [inline, static]

Definition at line 4330 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyModelInfo ( mixed  modelid,
mixed  bAllowBroken 
) [inline, static]

Definition at line 4332 of file lua_pseudo_code.cpp.

static mixed granny::GetGrannyFilePath ( mixed  modelid,
mixed  bAllowBroken 
) [inline, static]

Definition at line 4334 of file lua_pseudo_code.cpp.

static mixed granny::TestGranny ( mixed  modelid  )  [inline, static]

Definition at line 4336 of file lua_pseudo_code.cpp.


The documentation for this class was generated from the following file:

Generated on Fri Mar 29 05:41:10 2013 for lua by  doxygen 1.5.6