ScummVM API documentation
Saga2::PlayerActor Class Reference

Public Types

enum  PlayerActorFlags { kPlayerAggressive = (1 << 0), kPlayerBanded = (1 << 1), kPlayerHasCartography = (1 << 2) }
 
enum  Recovery { kBaseManaRec = 1, kAttribPointsPerUpdate = 1, kAttribPointsPerValue = 10 }
 
enum  { kVitalityLevelBump = 50 }
 

Public Member Functions

 PlayerActor (ObjectID a)
 
int8 getSkillLevel (SkillProto *, bool base=false)
 
uint8 getStatIndex (SkillProto *)
 
ActorAttributesgetEffStats ()
 
void skillAdvance (uint8 stat, uint8 advanceChance, uint8 points, uint8 useMult=1)
 
void skillAdvance (SkillProto *proto, uint8 points, uint8 useMult=1)
 
void skillAdvance (ActorSkillID stat, uint8 points, uint8 useMult=1)
 
void vitalityAdvance (uint8 points)
 
ActorgetActor ()
 
ObjectID getActorID ()
 
void setAggression ()
 
void clearAggression ()
 
bool isAggressive ()
 
void setBanded ()
 
void clearBanded ()
 
bool isBanded ()
 
void resolveBanding ()
 
void recalcPortraitType ()
 
int16 getPortraitType ()
 
void recoveryUpdate ()
 
void manaUpdate ()
 
void AttribUpdate ()
 
void stdAttribUpdate (uint8 &stat, uint8 baseStat, int16 index)
 
ActorAttributesgetBaseStats ()
 
void handleAttacked ()
 
void resetAttackNotification ()
 

Public Attributes

int16 _portraitType
 
uint16 _flags
 
ActorAttributes _baseStats
 
ContainerNode_readyNode
 
int16 _manaMemory [kNumManas]
 
uint8 _attribRecPools [kNumSkills]
 
uint8 _attribMemPools [kNumSkills]
 
uint8 _vitalityMemory
 
bool _notifiedOfAttack
 

Friends

void initPlayerActors ()
 
void cleanupPlayerActors ()
 

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