LLMaterialTable Class Reference

#include <llmaterialtable.h>

Collaboration diagram for LLMaterialTable:

Collaboration graph
[legend]
List of all members.

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

LLLinkedList< LLMaterialInfomMaterialInfoList
LLUUIDmCollisionSoundMatrix
LLUUIDmSlidingSoundMatrix
LLUUIDmRollingSoundMatrix

Static Public Attributes

static const F32 DEFAULT_FRICTION = 0.5f
static const F32 DEFAULT_RESTITUTION = 0.4f
static LLMaterialTable basic

Detailed Description

Definition at line 84 of file llmaterialtable.h.


Constructor & Destructor Documentation

LLMaterialTable::LLMaterialTable (  ) 

Definition at line 44 of file llmaterialtable.cpp.

LLMaterialTable::LLMaterialTable ( U8   ) 

Definition at line 48 of file llmaterialtable.cpp.

References initBasicTable().

LLMaterialTable::~LLMaterialTable (  ) 

Definition at line 53 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::deleteAllData(), mCollisionSoundMatrix, mMaterialInfoList, mRollingSoundMatrix, mSlidingSoundMatrix, and NULL.


Member Function Documentation

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

Definition at line 284 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::addDataAtEnd(), FALSE, mMaterialInfoList, and TRUE.

Referenced by initBasicTable().

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

Definition at line 298 of file llmaterialtable.cpp.

References LL_MCODE_END, mCollisionSoundMatrix, and TRUE.

Referenced by initBasicTable().

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

Definition at line 401 of file llmaterialtable.cpp.

References FALSE, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LLMaterialInfo::mDamageModifier, LLMaterialInfo::mEPModifier, LLMaterialInfo::mHPModifier, mMaterialInfoList, LLMaterialInfo::mMCode, NULL, and TRUE.

Referenced by initBasicTable().

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

Definition at line 353 of file llmaterialtable.cpp.

References FALSE, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LLMaterialInfo::mDensity, mMaterialInfoList, LLMaterialInfo::mMCode, NULL, and TRUE.

Referenced by initBasicTable().

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

Definition at line 385 of file llmaterialtable.cpp.

References FALSE, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LLMaterialInfo::mFriction, mMaterialInfoList, LLMaterialInfo::mMCode, NULL, and TRUE.

Referenced by initBasicTable().

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

Definition at line 369 of file llmaterialtable.cpp.

References FALSE, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mRestitution, NULL, and TRUE.

Referenced by initBasicTable().

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

Definition at line 324 of file llmaterialtable.cpp.

References LL_MCODE_END, mRollingSoundMatrix, and TRUE.

Referenced by initBasicTable().

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

Definition at line 337 of file llmaterialtable.cpp.

References FALSE, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mShatterSoundID, NULL, and TRUE.

Referenced by initBasicTable().

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

Definition at line 311 of file llmaterialtable.cpp.

References LL_MCODE_END, mSlidingSoundMatrix, and TRUE.

Referenced by initBasicTable().

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

Definition at line 555 of file llmaterialtable.cpp.

References IMG_SHOT.

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

Definition at line 487 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mCollisionSoundMatrix, and SND_NULL.

F32 LLMaterialTable::getDamageMod ( U8  mcode  ) 

Definition at line 634 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mDamageModifier, mMaterialInfoList, LLMaterialInfo::mMCode, and NULL.

LLUUID LLMaterialTable::getDefaultTextureID ( U8  mcode  ) 

Definition at line 435 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mDefaultTextureID, mMaterialInfoList, LLMaterialInfo::mMCode, LLUUID::null, and NULL.

LLUUID LLMaterialTable::getDefaultTextureID ( char *  name  ) 

Definition at line 419 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LLMaterialInfo::mDefaultTextureID, mMaterialInfoList, LLMaterialInfo::mName, LLUUID::null, and NULL.

F32 LLMaterialTable::getDensity ( U8  mcode  ) 

Definition at line 570 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mDensity, mMaterialInfoList, LLMaterialInfo::mMCode, and NULL.

F32 LLMaterialTable::getEPMod ( U8  mcode  ) 

Definition at line 650 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mEPModifier, mMaterialInfoList, LLMaterialInfo::mMCode, and NULL.

F32 LLMaterialTable::getFriction ( U8  mcode  ) 

Definition at line 602 of file llmaterialtable.cpp.

References DEFAULT_FRICTION, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mFriction, mMaterialInfoList, LLMaterialInfo::mMCode, and NULL.

LLUUID LLMaterialTable::getGroundCollisionParticleUUID ( U8  mcode  ) 

Definition at line 562 of file llmaterialtable.cpp.

References IMG_SMOKE_POOF.

LLUUID LLMaterialTable::getGroundCollisionSoundUUID ( U8  mcode  ) 

Definition at line 534 of file llmaterialtable.cpp.

References SND_STONE_DIRT_02.

LLUUID LLMaterialTable::getGroundRollingSoundUUID ( U8  mcode  ) 

Definition at line 548 of file llmaterialtable.cpp.

References SND_SLIDE_STONE_STONE_01.

LLUUID LLMaterialTable::getGroundSlidingSoundUUID ( U8  mcode  ) 

Definition at line 541 of file llmaterialtable.cpp.

References SND_SLIDE_STONE_STONE_01.

F32 LLMaterialTable::getHPMod ( U8  mcode  ) 

Definition at line 618 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, LLMaterialInfo::mHPModifier, mMaterialInfoList, LLMaterialInfo::mMCode, and NULL.

U8 LLMaterialTable::getMCode ( const char *  name  ) 

Definition at line 453 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mName, and NULL.

Referenced by LLPanelObject::onCommitMaterial().

char * LLMaterialTable::getName ( U8  mcode  ) 

Definition at line 469 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mName, and NULL.

F32 LLMaterialTable::getRestitution ( U8  mcode  ) 

Definition at line 586 of file llmaterialtable.cpp.

References DEFAULT_RESTITUTION, LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mRestitution, and NULL.

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

Definition at line 519 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mRollingSoundMatrix, and SND_NULL.

LLUUID LLMaterialTable::getShatterSoundUUID ( U8  mcode  ) 

Definition at line 666 of file llmaterialtable.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), LL_MCODE_MASK, mMaterialInfoList, LLMaterialInfo::mMCode, LLMaterialInfo::mShatterSoundID, NULL, and SND_NULL.

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

Definition at line 504 of file llmaterialtable.cpp.

References LL_MCODE_END, LL_MCODE_MASK, mSlidingSoundMatrix, and SND_NULL.

void LLMaterialTable::initBasicTable (  ) 

Definition at line 76 of file llmaterialtable.cpp.

References add(), addCollisionSound(), addDamageAndEnergy(), addDensity(), addFriction(), addRestitution(), addRollingSound(), addShatterSound(), addSlidingSound(), f, 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().


Member Data Documentation

LLMaterialTable LLMaterialTable::basic [static]

Definition at line 135 of file llmaterialtable.h.

Referenced by LLPanelObject::getState(), LLPanelObject::onCommitMaterial(), and LLPanelObject::postBuild().

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

Definition at line 92 of file llmaterialtable.h.

Referenced by getFriction().

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

Definition at line 93 of file llmaterialtable.h.

Referenced by getRestitution().

LLUUID* LLMaterialTable::mCollisionSoundMatrix

Definition at line 88 of file llmaterialtable.h.

Referenced by addCollisionSound(), getCollisionSoundUUID(), initBasicTable(), and ~LLMaterialTable().

LLLinkedList<LLMaterialInfo> LLMaterialTable::mMaterialInfoList

Definition at line 87 of file llmaterialtable.h.

Referenced by add(), addDamageAndEnergy(), addDensity(), addFriction(), addRestitution(), addShatterSound(), getDamageMod(), getDefaultTextureID(), getDensity(), getEPMod(), getFriction(), getHPMod(), getMCode(), getName(), getRestitution(), getShatterSoundUUID(), LLPanelObject::postBuild(), and ~LLMaterialTable().

LLUUID* LLMaterialTable::mRollingSoundMatrix

Definition at line 90 of file llmaterialtable.h.

Referenced by addRollingSound(), getRollingSoundUUID(), initBasicTable(), and ~LLMaterialTable().

LLUUID* LLMaterialTable::mSlidingSoundMatrix

Definition at line 89 of file llmaterialtable.h.

Referenced by addSlidingSound(), getSlidingSoundUUID(), initBasicTable(), and ~LLMaterialTable().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:29 2010 for Second Life Viewer by  doxygen 1.4.7