TypeFlags Class Reference

#include <TypeFlags.h>

List of all members.

Public Member Functions

 TypeFlags ()
 ~TypeFlags ()
void load (IDataSource *ds)
ShapeInfogetShapeInfo (uint32 shape)

Private Member Functions

void loadWeaponInfo ()
void loadArmourInfo ()
void loadMonsterInfo ()

Private Attributes

std::vector< ShapeInfoshapeInfo


Detailed Description

Definition at line 27 of file TypeFlags.h.


Constructor & Destructor Documentation

TypeFlags::TypeFlags (  ) 

Definition at line 31 of file TypeFlags.cpp.

TypeFlags::~TypeFlags (  ) 

Definition at line 37 of file TypeFlags.cpp.


Member Function Documentation

ShapeInfo * TypeFlags::getShapeInfo ( uint32  shape  ) 

Definition at line 42 of file TypeFlags.cpp.

References shapeInfo.

Referenced by MainShapeArchive::getShapeInfo().

void TypeFlags::load ( IDataSource ds  ) 

Definition at line 51 of file TypeFlags.cpp.

References ShapeInfo::animdata, ShapeInfo::animtype, ShapeInfo::armourinfo, ShapeInfo::equiptype, ShapeInfo::family, ShapeInfo::flags, IDataSource::getSize(), loadArmourInfo(), loadMonsterInfo(), loadWeaponInfo(), IDataSource::read(), shapeInfo, ShapeInfo::SI_BAG, ShapeInfo::SI_CRUS_NPC, ShapeInfo::SI_CRUSUNK61, ShapeInfo::SI_CRUSUNK62, ShapeInfo::SI_CRUSUNK63, ShapeInfo::SI_CRUSUNK64, ShapeInfo::SI_CRUSUNK66, ShapeInfo::SI_CRUSUNK67, ShapeInfo::SI_DAMAGING, ShapeInfo::SI_DRAW, ShapeInfo::SI_EDITOR, ShapeInfo::SI_EXPLODE, ShapeInfo::SI_FIXED, ShapeInfo::SI_IGNORE, ShapeInfo::SI_LAND, ShapeInfo::SI_NOISY, ShapeInfo::SI_OCCL, ShapeInfo::SI_ROOF, ShapeInfo::SI_SEA, ShapeInfo::SI_SOLID, ShapeInfo::SI_TRANSL, ShapeInfo::SI_UNKNOWN46, ShapeInfo::SI_UNKNOWN47, ShapeInfo::unknown, ShapeInfo::volume, ShapeInfo::weaponinfo, ShapeInfo::weight, ShapeInfo::x, ShapeInfo::y, and ShapeInfo::z.

Referenced by MainShapeArchive::loadTypeFlags().

void TypeFlags::loadArmourInfo (  )  [private]

Definition at line 226 of file TypeFlags.cpp.

References ArmourInfo::armour_class, ArmourInfo::defense_type, ArmourInfo::frame, Shape::frameCount(), ConfigFileManager::get(), GameData::get_instance(), ConfigFileManager::get_instance(), GameData::getMainShapes(), ShapeArchive::getShape(), ArmourInfo::kick_attack_bonus, ConfigFileManager::listSections(), ArmourInfo::shape, and shapeInfo.

Referenced by load().

void TypeFlags::loadMonsterInfo (  )  [private]

Definition at line 283 of file TypeFlags.cpp.

References MonsterInfo::alignment, MonsterInfo::armour_class, MonsterInfo::damage_type, MonsterInfo::defense_type, MonsterInfo::explode, ConfigFileManager::get(), ConfigFileManager::get_instance(), if(), ConfigFileManager::listSections(), TreasureLoader::loadDefaults(), MonsterInfo::max_dex, MonsterInfo::max_dmg, MonsterInfo::max_hp, MonsterInfo::min_dex, MonsterInfo::min_dmg, MonsterInfo::min_hp, TreasureLoader::parse(), perr, MonsterInfo::ranged, MonsterInfo::resurrection, MonsterInfo::shape, shapeInfo, MonsterInfo::shifter, MonsterInfo::treasure, and MonsterInfo::unk.

Referenced by load().

void TypeFlags::loadWeaponInfo (  )  [private]

Definition at line 173 of file TypeFlags.cpp.

References WeaponInfo::armour_bonus, WeaponInfo::base_damage, WeaponInfo::damage_modifier, WeaponInfo::damage_type, WeaponInfo::dex_attack_bonus, WeaponInfo::dex_defend_bonus, ConfigFileManager::get(), ConfigFileManager::get_instance(), ConfigFileManager::listSections(), WeaponInfo::overlay_shape, WeaponInfo::overlay_type, WeaponInfo::shape, shapeInfo, and WeaponInfo::treasure_chance.

Referenced by load().


Member Data Documentation

std::vector<ShapeInfo> TypeFlags::shapeInfo [private]

Definition at line 41 of file TypeFlags.h.

Referenced by getShapeInfo(), load(), loadArmourInfo(), loadMonsterInfo(), and loadWeaponInfo().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:05 2007 for pentagram by  doxygen 1.4.7