ScummVM API documentation
Saga2::ActiveItem Class Reference

Public Types

enum  { kActiveItemLocked = (1 << 8) , kActiveItemOpen = (1 << 9) , kActiveItemExclusive = (1 << 10) }
 
enum  BuiltInBehaviorType { kBuiltInNone = 0 , kBuiltInLamp , kBuiltInDoor , kBuiltInTransporter }
 

Public Member Functions

 ActiveItem (ActiveItemList *parent, int ind, Common::SeekableReadStream *stream)
 
int16 getMapNum ()
 
ActiveItemID thisID ()
 
ActiveItemID thisID (int16 mapNum)
 
ActiveItem * getGroup ()
 
uint8 getInstanceState (int16 mapNum)
 
void setInstanceState (int16 mapNum, uint8 state)
 
uint8 builtInBehavior ()
 
bool isLocked ()
 
void setLocked (bool val)
 
bool isExclusive ()
 
void setExclusive (bool val)
 
uint8 lockType ()
 
bool use (ObjectID enactor)
 
bool trigger (ObjectID enactor, ObjectID objID)
 
bool release (ObjectID enactor, ObjectID objID)
 
bool acceptLockToggle (ObjectID enactor, uint8 keyCode)
 
bool inRange (const TilePoint &loc, int16 range)
 
bool use (ActiveItem *ins, ObjectID enactor)
 
bool trigger (ActiveItem *ins, ObjectID enactor, ObjectID objID)
 
bool release (ActiveItem *ins, ObjectID enactor, ObjectID objID)
 
bool acceptLockToggle (ActiveItem *ins, ObjectID enactor, uint8 keyCode)
 
bool inRange (ActiveItem *ins, const TilePoint &loc, int16 range)
 
ObjectID getInstanceContext ()
 
Location getInstanceLocation ()
 

Static Public Member Functions

static ActiveItem * activeItemAddress (ActiveItemID id)
 
static void playTAGNoise (ActiveItem *ai, int16 tagNoiseID)
 

Public Attributes

ActiveItem * _nextHash
 
int _index
 
ActiveItemList * _parent
 
ActiveItemData _data
 

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