ScummVM API documentation
Saga::Actor Class Reference

Public Member Functions

 Actor (SagaEngine *vm)
 
void cmdActorWalkTo (int argc, const char **argv)
 
bool validActorId (uint16 id)
 
int actorIdToIndex (uint16 id)
 
uint16 actorIndexToId (int index)
 
ActorDatagetActor (uint16 actorId)
 
bool validObjId (uint16 id)
 
int objIdToIndex (uint16 id)
 
uint16 objIndexToId (int index)
 
ObjectDatagetObj (uint16 objId)
 
int getObjectScriptEntrypointNumber (uint16 id)
 
int getObjectFlags (uint16 id)
 
void direct (int msec)
 
void drawActors ()
 
void updateActorsScene (int actorsEntrance)
 
void drawSpeech ()
 
uint16 hitTest (const Point &testPoint, bool skipProtagonist)
 
void takeExit (uint16 actorId, const HitZone *hitZone)
 
bool actorEndWalk (uint16 actorId, bool recurse)
 
bool actorWalkTo (uint16 actorId, const Location &toLocation)
 
int getFrameType (ActorFrameTypes frameType)
 
ActorFrameRangegetActorFrameRange (uint16 actorId, int frameType)
 
void actorFaceTowardsPoint (uint16 actorId, const Location &toLocation)
 
void actorFaceTowardsObject (uint16 actorId, uint16 objectId)
 
void realLocation (Location &location, uint16 objectId, uint16 walkFlags)
 
void actorSpeech (uint16 actorId, const char **strings, int stringsCount, int sampleResourceId, int speechFlags)
 
void nonActorSpeech (const Common::Rect &box, const char **strings, int stringsCount, int sampleResourceId, int speechFlags)
 
void simulSpeech (const char *string, uint16 *actorIds, int actorIdsCount, int speechFlags, int sampleResourceId)
 
void setSpeechColor (int speechColor, int outlineColor)
 
void abortAllSpeeches ()
 
void abortSpeech ()
 
bool isSpeaking ()
 
int isForcedTextShown ()
 
void saveState (Common::OutSaveFile *out)
 
void loadState (Common::InSaveFile *in)
 
void setProtagState (int state)
 
int getProtagState ()
 
void loadActorList (int protagonistIdx, int actorCount, int actorsResourceID, int protagStatesCount, int protagStatesResourceID)
 
void loadObjList (int objectCount, int objectsResourceID)
 

Public Attributes

ActorData_centerActor
 
ActorData_protagonist
 
int _handleActionDiv
 
Rect _speechBoxScript
 
StringsTable _objectsStrings
 
StringsTable _actorsStrings
 

Protected Member Functions

void loadActorResources (ActorData *actor)
 
void loadFrameList (int frameListResourceId, ActorFrameSequences &frames)
 

Protected Attributes

ActorDataArray _actors
 
ObjectDataArray _objs
 
SagaEngine_vm
 
ResourceContext_actorContext
 
int _lastTickMsec
 
CommonObjectOrderList _drawOrderList
 
SpeechData _activeSpeech
 
int _protagState
 
bool _dragonHunt
 

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