ShapeInfo Class Reference

#include <ShapeInfo.h>

List of all members.

Public Types

 SI_FIXED = 0x0001
 SI_SOLID = 0x0002
 SI_SEA = 0x0004
 SI_LAND = 0x0008
 SI_OCCL = 0x0010
 SI_BAG = 0x0020
 SI_DAMAGING = 0x0040
 SI_NOISY = 0x0080
 SI_DRAW = 0x0100
 SI_IGNORE = 0x0200
 SI_ROOF = 0x0400
 SI_TRANSL = 0x0800
 SI_EDITOR = 0x1000
 SI_EXPLODE = 0x2000
 SI_UNKNOWN46 = 0x4000
 SI_UNKNOWN47 = 0x8000
 SI_CRUSUNK61 = 0x2000
 SI_CRUSUNK62 = 0x4000
 SI_CRUSUNK63 = 0x8000
 SI_CRUSUNK64 = 0x10000
 SI_CRUS_NPC = 0x20000
 SI_CRUSUNK66 = 0x40000
 SI_CRUSUNK67 = 0x80000
 SF_GENERIC = 0
 SF_QUALITY = 1
 SF_QUANTITY = 2
 SF_GLOBEGG = 3
 SF_UNKEGG = 4
 SF_BREAKABLE = 5
 SF_CONTAINER = 6
 SF_MONSTEREGG = 7
 SF_TELEPORTEGG = 8
 SF_REAGENT = 9
 SF_15 = 15
 SE_NONE = 0
 SE_SHIELD = 1
 SE_ARM = 2
 SE_HEAD = 3
 SE_BODY = 4
 SE_LEGS = 5
 SE_WEAPON = 6
enum  SFlags {
  SI_FIXED = 0x0001, SI_SOLID = 0x0002, SI_SEA = 0x0004, SI_LAND = 0x0008,
  SI_OCCL = 0x0010, SI_BAG = 0x0020, SI_DAMAGING = 0x0040, SI_NOISY = 0x0080,
  SI_DRAW = 0x0100, SI_IGNORE = 0x0200, SI_ROOF = 0x0400, SI_TRANSL = 0x0800,
  SI_EDITOR = 0x1000, SI_EXPLODE = 0x2000, SI_UNKNOWN46 = 0x4000, SI_UNKNOWN47 = 0x8000,
  SI_CRUSUNK61 = 0x2000, SI_CRUSUNK62 = 0x4000, SI_CRUSUNK63 = 0x8000, SI_CRUSUNK64 = 0x10000,
  SI_CRUS_NPC = 0x20000, SI_CRUSUNK66 = 0x40000, SI_CRUSUNK67 = 0x80000
}
enum  SFamily {
  SF_GENERIC = 0, SF_QUALITY = 1, SF_QUANTITY = 2, SF_GLOBEGG = 3,
  SF_UNKEGG = 4, SF_BREAKABLE = 5, SF_CONTAINER = 6, SF_MONSTEREGG = 7,
  SF_TELEPORTEGG = 8, SF_REAGENT = 9, SF_15 = 15
}
enum  SEquipType {
  SE_NONE = 0, SE_SHIELD = 1, SE_ARM = 2, SE_HEAD = 3,
  SE_BODY = 4, SE_LEGS = 5, SE_WEAPON = 6
}

Public Member Functions

bool is_fixed () const
bool is_solid () const
bool is_sea () const
bool is_land () const
bool is_occl () const
bool is_bag () const
bool is_damaging () const
bool is_noisy () const
bool is_draw () const
bool is_ignore () const
bool is_roof () const
bool is_translucent () const
bool is_editor () const
bool is_explode () const
bool hasQuantity () const
bool getTypeFlag (int typeflag)
bool getTypeFlagU8 (int typeflag)
bool getTypeFlagCrusader (int typeflag)
void getFootpadWorld (sint32 &X, sint32 &Y, sint32 &Z, uint16 flipped) const
 ShapeInfo ()
 ~ShapeInfo ()

Public Attributes

uint32 flags
uint32 x
uint32 y
uint32 z
uint32 family
uint32 equiptype
uint32 animtype
uint32 animdata
uint32 unknown
uint32 weight
uint32 volume
WeaponInfoweaponinfo
ArmourInfoarmourinfo
MonsterInfomonsterinfo


Detailed Description

Definition at line 26 of file ShapeInfo.h.


Member Enumeration Documentation

enum ShapeInfo::SEquipType

Enumerator:
SE_NONE 
SE_SHIELD 
SE_ARM 
SE_HEAD 
SE_BODY 
SE_LEGS 
SE_WEAPON 

Definition at line 69 of file ShapeInfo.h.

enum ShapeInfo::SFamily

Enumerator:
SF_GENERIC 
SF_QUALITY 
SF_QUANTITY 
SF_GLOBEGG 
SF_UNKEGG 
SF_BREAKABLE 
SF_CONTAINER 
SF_MONSTEREGG 
SF_TELEPORTEGG 
SF_REAGENT 
SF_15 

Definition at line 55 of file ShapeInfo.h.

enum ShapeInfo::SFlags

Enumerator:
SI_FIXED 
SI_SOLID 
SI_SEA 
SI_LAND 
SI_OCCL 
SI_BAG 
SI_DAMAGING 
SI_NOISY 
SI_DRAW 
SI_IGNORE 
SI_ROOF 
SI_TRANSL 
SI_EDITOR 
SI_EXPLODE 
SI_UNKNOWN46 
SI_UNKNOWN47 
SI_CRUSUNK61 
SI_CRUSUNK62 
SI_CRUSUNK63 
SI_CRUSUNK64 
SI_CRUS_NPC 
SI_CRUSUNK66 
SI_CRUSUNK67 

Definition at line 29 of file ShapeInfo.h.


Constructor & Destructor Documentation

ShapeInfo::ShapeInfo (  )  [inline]

Definition at line 115 of file ShapeInfo.h.

ShapeInfo::~ShapeInfo (  )  [inline]

Definition at line 117 of file ShapeInfo.h.

References armourinfo, monsterinfo, and weaponinfo.


Member Function Documentation

void ShapeInfo::getFootpadWorld ( sint32 X,
sint32 Y,
sint32 Z,
uint16  flipped 
) const [inline]

Definition at line 125 of file ShapeInfo.h.

References x, y, and z.

bool ShapeInfo::getTypeFlag ( int  typeflag  ) 

Definition at line 24 of file ShapeInfo.cpp.

References getTypeFlagCrusader(), and getTypeFlagU8().

bool ShapeInfo::getTypeFlagCrusader ( int  typeflag  ) 

Definition at line 95 of file ShapeInfo.cpp.

References family, flags, perr, x, y, and z.

Referenced by getTypeFlag().

bool ShapeInfo::getTypeFlagU8 ( int  typeflag  ) 

Definition at line 34 of file ShapeInfo.cpp.

References animdata, animtype, equiptype, family, flags, unknown, volume, weight, x, y, and z.

Referenced by getTypeFlag().

bool ShapeInfo::hasQuantity (  )  const [inline]

Definition at line 106 of file ShapeInfo.h.

References family, SF_QUANTITY, and SF_REAGENT.

Referenced by ContainerGump::DropItem(), Actor::giveTreasure(), SplitItemProcess::run(), and SplitItemProcess::SplitItemProcess().

bool ShapeInfo::is_bag (  )  const [inline]

Definition at line 96 of file ShapeInfo.h.

References flags, and SI_BAG.

bool ShapeInfo::is_damaging (  )  const [inline]

Definition at line 97 of file ShapeInfo.h.

References flags, and SI_DAMAGING.

bool ShapeInfo::is_draw (  )  const [inline]

Definition at line 99 of file ShapeInfo.h.

References flags, and SI_DRAW.

Referenced by ItemSorter::AddItem().

bool ShapeInfo::is_editor (  )  const [inline]

Definition at line 103 of file ShapeInfo.h.

References flags, and SI_EDITOR.

Referenced by CurrentMap::traceTopItem().

bool ShapeInfo::is_explode (  )  const [inline]

Definition at line 104 of file ShapeInfo.h.

References flags, and SI_EXPLODE.

bool ShapeInfo::is_fixed (  )  const [inline]

Definition at line 91 of file ShapeInfo.h.

References flags, and SI_FIXED.

Referenced by ItemSorter::AddItem(), and Item::canDrag().

bool ShapeInfo::is_ignore (  )  const [inline]

Definition at line 100 of file ShapeInfo.h.

References flags, and SI_IGNORE.

bool ShapeInfo::is_land (  )  const [inline]

Definition at line 94 of file ShapeInfo.h.

References flags, and SI_LAND.

Referenced by ItemSorter::AddItem(), ContainerGump::getTargetContainer(), AvatarMoverProcess::jump(), GravityProcess::run(), and AnimationTracker::step().

bool ShapeInfo::is_noisy (  )  const [inline]

Definition at line 98 of file ShapeInfo.h.

References flags, and SI_NOISY.

Referenced by ItemSorter::AddItem().

bool ShapeInfo::is_occl (  )  const [inline]

Definition at line 95 of file ShapeInfo.h.

References flags, and SI_OCCL.

Referenced by ItemSorter::AddItem().

bool ShapeInfo::is_roof (  )  const [inline]

Definition at line 101 of file ShapeInfo.h.

References flags, and SI_ROOF.

Referenced by ItemSorter::AddItem().

bool ShapeInfo::is_sea (  )  const [inline]

Definition at line 93 of file ShapeInfo.h.

References flags, and SI_SEA.

bool ShapeInfo::is_solid (  )  const [inline]

Definition at line 92 of file ShapeInfo.h.

References flags, and SI_SOLID.

Referenced by ItemSorter::AddItem(), and CurrentMap::scanForValidPosition().

bool ShapeInfo::is_translucent (  )  const [inline]

Definition at line 102 of file ShapeInfo.h.

References flags, and SI_TRANSL.

Referenced by ItemSorter::AddItem(), and CurrentMap::traceTopItem().


Member Data Documentation

uint32 ShapeInfo::animdata

Definition at line 83 of file ShapeInfo.h.

Referenced by Item::animateItem(), getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::animtype

Definition at line 83 of file ShapeInfo.h.

Referenced by ItemSorter::AddItem(), Item::animateItem(), getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

ArmourInfo* ShapeInfo::armourinfo

Definition at line 88 of file ShapeInfo.h.

Referenced by MainActor::getArmourClass(), MainActor::getDamageAmount(), MainActor::getDefenseType(), TypeFlags::load(), and ~ShapeInfo().

uint32 ShapeInfo::equiptype

Definition at line 82 of file ShapeInfo.h.

Referenced by PaperdollGump::DraggingItem(), PaperdollGump::DropItem(), getTypeFlagU8(), TypeFlags::load(), ShapeViewerGump::PaintThis(), and Actor::setEquip().

uint32 ShapeInfo::family

Definition at line 81 of file ShapeInfo.h.

Referenced by ItemFactory::createItem(), Item::getFamily(), getTypeFlagCrusader(), getTypeFlagU8(), hasQuantity(), TypeFlags::load(), Map::loadFixedFormatObjects(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::flags

Definition at line 79 of file ShapeInfo.h.

Referenced by getTypeFlagCrusader(), getTypeFlagU8(), is_bag(), is_damaging(), is_draw(), is_editor(), is_explode(), is_fixed(), is_ignore(), is_land(), is_noisy(), is_occl(), is_roof(), is_sea(), is_solid(), is_translucent(), MissileTracker::isPathClear(), TypeFlags::load(), ShapeViewerGump::PaintThis(), QuickAvatarMoverProcess::run(), GravityProcess::run(), CurrentMap::scanForValidPosition(), AnimationTracker::step(), and CurrentMap::traceTopItem().

MonsterInfo* ShapeInfo::monsterinfo

Definition at line 89 of file ShapeInfo.h.

Referenced by Actor::die(), Actor::getArmourClass(), Actor::getDamageAmount(), Actor::getDamageType(), Actor::getDefenseType(), Actor::giveTreasure(), CombatProcess::inAttackRange(), Actor::loadMonsterStats(), CombatProcess::waitForTarget(), and ~ShapeInfo().

uint32 ShapeInfo::unknown

Definition at line 84 of file ShapeInfo.h.

Referenced by getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::volume

Definition at line 85 of file ShapeInfo.h.

Referenced by Container::getCapacity(), getTypeFlagU8(), Item::getVolume(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

WeaponInfo* ShapeInfo::weaponinfo

Definition at line 87 of file ShapeInfo.h.

Referenced by MainActor::getArmourClass(), MainActor::getAttackingDex(), MainActor::getDamageAmount(), MainActor::getDamageType(), Item::getDamageType(), MainActor::getDefendingDex(), MainActor::getWeaponOverlay(), Actor::giveTreasure(), TypeFlags::load(), and ~ShapeInfo().

uint32 ShapeInfo::weight

Definition at line 85 of file ShapeInfo.h.

Referenced by Item::canDrag(), getTypeFlagU8(), Item::getWeight(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::x

Definition at line 80 of file ShapeInfo.h.

Referenced by ItemSorter::AddItem(), CurrentMap::areaSearch(), Item::getCentre(), Item::getFootpadData(), getFootpadWorld(), Item::getFootpadWorld(), getTypeFlagCrusader(), getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::y

Definition at line 80 of file ShapeInfo.h.

Referenced by ItemSorter::AddItem(), CurrentMap::areaSearch(), Item::getCentre(), Item::getFootpadData(), getFootpadWorld(), Item::getFootpadWorld(), getTypeFlagCrusader(), getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().

uint32 ShapeInfo::z

Definition at line 80 of file ShapeInfo.h.

Referenced by ItemSorter::AddItem(), Item::getCentre(), Item::getFootpadData(), getFootpadWorld(), Item::getFootpadWorld(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), getTypeFlagCrusader(), getTypeFlagU8(), TypeFlags::load(), and ShapeViewerGump::PaintThis().


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