LLMaterialTable Class Reference

#include <llmaterialtable.h>

Collaboration diagram for LLMaterialTable:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list
< LLMaterialInfo * > 
info_list_t

Public Member Functions

 LLMaterialTable ()
 LLMaterialTable (U8)
 ~LLMaterialTable ()
void initBasicTable ()
BOOL add (U8 mcode, char *name, const LLUUID &uuid)
BOOL addCollisionSound (U8 mcode, U8 mcode2, const LLUUID &uuid)
BOOL addSlidingSound (U8 mcode, U8 mcode2, const LLUUID &uuid)
BOOL addRollingSound (U8 mcode, U8 mcode2, const LLUUID &uuid)
BOOL addShatterSound (U8 mcode, const LLUUID &uuid)
BOOL addDensity (U8 mcode, const F32 &density)
BOOL addFriction (U8 mcode, const F32 &friction)
BOOL addRestitution (U8 mcode, const F32 &restitution)
BOOL addDamageAndEnergy (U8 mcode, const F32 &hp_mod, const F32 &damage_mod, const F32 &ep_mod)
LLUUID getDefaultTextureID (char *name)
LLUUID getDefaultTextureID (U8 mcode)
U8 getMCode (const char *name)
char * getName (U8 mcode)
F32 getDensity (U8 mcode)
F32 getFriction (U8 mcode)
F32 getRestitution (U8 mcode)
F32 getHPMod (U8 mcode)
F32 getDamageMod (U8 mcode)
F32 getEPMod (U8 mcode)
LLUUID getCollisionSoundUUID (U8 mcode, U8 mcode2)
LLUUID getSlidingSoundUUID (U8 mcode, U8 mcode2)
LLUUID getRollingSoundUUID (U8 mcode, U8 mcode2)
LLUUID getShatterSoundUUID (U8 mcode)
LLUUID getGroundCollisionSoundUUID (U8 mcode)
LLUUID getGroundSlidingSoundUUID (U8 mcode)
LLUUID getGroundRollingSoundUUID (U8 mcode)
LLUUID getCollisionParticleUUID (U8 mcode, U8 mcode2)
LLUUID getGroundCollisionParticleUUID (U8 mcode)

Public Attributes

info_list_t mMaterialInfoList
LLUUIDmCollisionSoundMatrix
LLUUIDmSlidingSoundMatrix
LLUUIDmRollingSoundMatrix

Static Public Attributes

static const F32 FRICTION_MIN = 0.15f
static const F32 FRICTION_GLASS = 0.13f
static const F32 FRICTION_LIGHT = 0.14f
static const F32 FRICTION_METAL = 0.22f
static const F32 FRICTION_PLASTIC = 0.3f
static const F32 FRICTION_WOOD = 0.44f
static const F32 FRICTION_LAND = 0.58f
static const F32 FRICTION_STONE = 0.6f
static const F32 FRICTION_FLESH = 0.46f
static const F32 FRICTION_RUBBER = 0.67f
static const F32 FRICTION_MAX = 0.71f
static const F32 RESTITUTION_MIN = 0.02f
static const F32 RESTITUTION_LAND = LLMaterialTable::RESTITUTION_MIN
static const F32 RESTITUTION_FLESH = 0.2f
static const F32 RESTITUTION_STONE = 0.4f
static const F32 RESTITUTION_METAL = 0.4f
static const F32 RESTITUTION_WOOD = 0.5f
static const F32 RESTITUTION_GLASS = 0.7f
static const F32 RESTITUTION_PLASTIC = 0.7f
static const F32 RESTITUTION_LIGHT = 0.7f
static const F32 RESTITUTION_RUBBER = 0.9f
static const F32 RESTITUTION_MAX = 0.95f
static const F32 DEFAULT_FRICTION = 0.5f
static const F32 DEFAULT_RESTITUTION = 0.4f
static LLMaterialTable basic


Detailed Description

Definition at line 109 of file llmaterialtable.h.


Member Typedef Documentation

Definition at line 136 of file llmaterialtable.h.


Constructor & Destructor Documentation

LLMaterialTable::LLMaterialTable (  ) 

Definition at line 93 of file llmaterialtable.cpp.

LLMaterialTable::LLMaterialTable ( U8  isBasic  ) 

Definition at line 97 of file llmaterialtable.cpp.

References initBasicTable().

Here is the call graph for this function:

LLMaterialTable::~LLMaterialTable (  ) 


Member Function Documentation

void LLMaterialTable::initBasicTable (  ) 

Definition at line 126 of file llmaterialtable.cpp.

References addCollisionSound(), addDamageAndEnergy(), addDensity(), addFriction(), addRestitution(), addRollingSound(), addShatterSound(), addSlidingSound(), LL_DEFAULT_FLESH_UUID, LL_DEFAULT_GLASS_UUID, LL_DEFAULT_LIGHT_UUID, LL_DEFAULT_METAL_UUID, LL_DEFAULT_PLASTIC_UUID, LL_DEFAULT_RUBBER_UUID, LL_DEFAULT_STONE_UUID, LL_DEFAULT_WOOD_UUID, LL_MCODE_END, LL_MCODE_FLESH, LL_MCODE_GLASS, LL_MCODE_LIGHT, LL_MCODE_METAL, LL_MCODE_PLASTIC, LL_MCODE_RUBBER, LL_MCODE_STONE, LL_MCODE_WOOD, mCollisionSoundMatrix, mRollingSoundMatrix, mSlidingSoundMatrix, SND_FLESH_FLESH, SND_FLESH_PLASTIC, SND_FLESH_RUBBER, SND_GLASS_FLESH, SND_GLASS_GLASS, SND_GLASS_PLASTIC, SND_GLASS_RUBBER, SND_GLASS_WOOD, SND_METAL_FLESH, SND_METAL_GLASS, SND_METAL_METAL, SND_METAL_PLASTIC, SND_METAL_RUBBER, SND_METAL_WOOD, SND_PLASTIC_PLASTIC, SND_ROLL_FLESH_PLASTIC, SND_ROLL_GLASS_WOOD, SND_ROLL_METAL_GLASS, SND_ROLL_METAL_WOOD, SND_ROLL_PLASTIC_PLASTIC, SND_ROLL_STONE_PLASTIC, SND_ROLL_STONE_STONE, SND_ROLL_STONE_WOOD, SND_ROLL_WOOD_FLESH, SND_ROLL_WOOD_PLASTIC, SND_ROLL_WOOD_WOOD, SND_RUBBER_PLASTIC, SND_RUBBER_RUBBER, SND_SLIDE_FLESH_FLESH, SND_SLIDE_METAL_FLESH, SND_SLIDE_METAL_GLASS, SND_SLIDE_METAL_METAL, SND_SLIDE_METAL_RUBBER, SND_SLIDE_METAL_WOOD, SND_SLIDE_RUBBER_PLASTIC, SND_SLIDE_STONE_PLASTIC, SND_SLIDE_STONE_RUBBER, SND_SLIDE_STONE_STONE, SND_SLIDE_STONE_STONE_01, SND_SLIDE_STONE_WOOD, SND_SLIDE_WOOD_FLESH, SND_SLIDE_WOOD_PLASTIC, SND_SLIDE_WOOD_WOOD, SND_STONE_FLESH, SND_STONE_GLASS, SND_STONE_METAL, SND_STONE_PLASTIC, SND_STONE_RUBBER, SND_STONE_STONE, SND_STONE_WOOD, SND_WOOD_FLESH, SND_WOOD_PLASTIC, SND_WOOD_RUBBER, and SND_WOOD_WOOD.

Referenced by LLMaterialTable().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLMaterialTable::add ( U8  mcode,
char *  name,
const LLUUID uuid 
)

Definition at line 334 of file llmaterialtable.cpp.

References FALSE, mMaterialInfoList, and TRUE.

BOOL LLMaterialTable::addCollisionSound ( U8  mcode,
U8  mcode2,
const LLUUID uuid 
)

Definition at line 348 of file llmaterialtable.cpp.

References LL_MCODE_END, mCollisionSoundMatrix, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addSlidingSound ( U8  mcode,
U8  mcode2,
const LLUUID uuid 
)

Definition at line 361 of file llmaterialtable.cpp.

References LL_MCODE_END, mSlidingSoundMatrix, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addRollingSound ( U8  mcode,
U8  mcode2,
const LLUUID uuid 
)

Definition at line 374 of file llmaterialtable.cpp.

References LL_MCODE_END, mRollingSoundMatrix, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addShatterSound ( U8  mcode,
const LLUUID uuid 
)

Definition at line 387 of file llmaterialtable.cpp.

References FALSE, mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mShatterSoundID, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addDensity ( U8  mcode,
const F32 density 
)

Definition at line 403 of file llmaterialtable.cpp.

References FALSE, LLMaterialInfo::mDensity, mMaterialInfoList, LLMaterialInfo::mMCode, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addFriction ( U8  mcode,
const F32 friction 
)

Definition at line 435 of file llmaterialtable.cpp.

References FALSE, LLMaterialInfo::mFriction, mMaterialInfoList, LLMaterialInfo::mMCode, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addRestitution ( U8  mcode,
const F32 restitution 
)

Definition at line 419 of file llmaterialtable.cpp.

References FALSE, mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mRestitution, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

BOOL LLMaterialTable::addDamageAndEnergy ( U8  mcode,
const F32 hp_mod,
const F32 damage_mod,
const F32 ep_mod 
)

Definition at line 451 of file llmaterialtable.cpp.

References FALSE, LLMaterialInfo::mDamageModifier, LLMaterialInfo::mEPModifier, LLMaterialInfo::mHPModifier, mMaterialInfoList, LLMaterialInfo::mMCode, and TRUE.

Referenced by initBasicTable().

Here is the caller graph for this function:

LLUUID LLMaterialTable::getDefaultTextureID ( char *  name  ) 

LLUUID LLMaterialTable::getDefaultTextureID ( U8  mcode  ) 

U8 LLMaterialTable::getMCode ( const char *  name  ) 

Definition at line 502 of file llmaterialtable.cpp.

References mMaterialInfoList, LLMaterialInfo::mMCode, and LLMaterialInfo::mName.

Referenced by LLPanelObject::onCommitMaterial().

Here is the caller graph for this function:

char * LLMaterialTable::getName ( U8  mcode  ) 

F32 LLMaterialTable::getDensity ( U8  mcode  ) 

F32 LLMaterialTable::getFriction ( U8  mcode  ) 

F32 LLMaterialTable::getRestitution ( U8  mcode  ) 

F32 LLMaterialTable::getHPMod ( U8  mcode  ) 

F32 LLMaterialTable::getDamageMod ( U8  mcode  ) 

F32 LLMaterialTable::getEPMod ( U8  mcode  ) 

LLUUID LLMaterialTable::getCollisionSoundUUID ( U8  mcode,
U8  mcode2 
)

Definition at line 535 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mCollisionSoundMatrix, and SND_NULL.

LLUUID LLMaterialTable::getSlidingSoundUUID ( U8  mcode,
U8  mcode2 
)

Definition at line 552 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mSlidingSoundMatrix, and SND_NULL.

LLUUID LLMaterialTable::getRollingSoundUUID ( U8  mcode,
U8  mcode2 
)

Definition at line 567 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mRollingSoundMatrix, and SND_NULL.

LLUUID LLMaterialTable::getShatterSoundUUID ( U8  mcode  ) 

LLUUID LLMaterialTable::getGroundCollisionSoundUUID ( U8  mcode  ) 

Definition at line 582 of file llmaterialtable.cpp.

References SND_STONE_DIRT_02.

LLUUID LLMaterialTable::getGroundSlidingSoundUUID ( U8  mcode  ) 

Definition at line 589 of file llmaterialtable.cpp.

References SND_SLIDE_STONE_STONE_01.

LLUUID LLMaterialTable::getGroundRollingSoundUUID ( U8  mcode  ) 

Definition at line 596 of file llmaterialtable.cpp.

References SND_SLIDE_STONE_STONE_01.

LLUUID LLMaterialTable::getCollisionParticleUUID ( U8  mcode,
U8  mcode2 
)

Definition at line 603 of file llmaterialtable.cpp.

References IMG_SHOT.

LLUUID LLMaterialTable::getGroundCollisionParticleUUID ( U8  mcode  ) 

Definition at line 610 of file llmaterialtable.cpp.

References IMG_SMOKE_POOF.


Member Data Documentation

F32 const LLMaterialTable::FRICTION_MIN = 0.15f [static]

Definition at line 112 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_GLASS = 0.13f [static]

Definition at line 113 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_LIGHT = 0.14f [static]

Definition at line 114 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_METAL = 0.22f [static]

Definition at line 115 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_PLASTIC = 0.3f [static]

Definition at line 116 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_WOOD = 0.44f [static]

Definition at line 117 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_LAND = 0.58f [static]

Definition at line 118 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_STONE = 0.6f [static]

Definition at line 119 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_FLESH = 0.46f [static]

Definition at line 120 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_RUBBER = 0.67f [static]

Definition at line 121 of file llmaterialtable.h.

F32 const LLMaterialTable::FRICTION_MAX = 0.71f [static]

Definition at line 122 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_MIN = 0.02f [static]

Definition at line 124 of file llmaterialtable.h.

Definition at line 125 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_FLESH = 0.2f [static]

Definition at line 126 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_STONE = 0.4f [static]

Definition at line 127 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_METAL = 0.4f [static]

Definition at line 128 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_WOOD = 0.5f [static]

Definition at line 129 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_GLASS = 0.7f [static]

Definition at line 130 of file llmaterialtable.h.

Definition at line 131 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_LIGHT = 0.7f [static]

Definition at line 132 of file llmaterialtable.h.

Definition at line 133 of file llmaterialtable.h.

F32 const LLMaterialTable::RESTITUTION_MAX = 0.95f [static]

Definition at line 134 of file llmaterialtable.h.

F32 const LLMaterialTable::DEFAULT_FRICTION = 0.5f [static]

Definition at line 143 of file llmaterialtable.h.

Referenced by getFriction().

Definition at line 144 of file llmaterialtable.h.

Referenced by getRestitution().


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

Generated on Fri May 16 08:52:12 2008 for SecondLife by  doxygen 1.5.5