|
| CombatProcess (Actor *actor) |
|
void | run () override |
|
void | terminate () override |
| terminate the process. This wakes up all processes waiting for it.
|
|
ObjId | getTarget () |
|
void | setTarget (ObjId target) |
|
ObjId | seekTarget () |
|
Common::String | dumpInfo () const override |
| dump some info about this process to a string
|
|
bool | loadData (Common::ReadStream *rs, uint32 version) |
|
void | saveData (Common::WriteStream *ws) override |
| save Process data
|
|
| Process (ObjId _itemNum=0, uint16 type=0) |
|
uint32 | getProcessFlags () const |
|
bool | is_active () const |
|
bool | is_terminated () const |
|
bool | is_suspended () const |
|
void | fail () |
| terminate the process and recursively fail all processes waiting for it
|
|
void | terminateDeferred () |
| terminate next frame
|
|
void | setRunPaused () |
| run even when paused
|
|
void | waitFor (ProcId pid) |
| suspend until process 'pid' returns. If pid is 0, suspend indefinitely
|
|
void | waitFor (Process *proc) |
| suspend until process returns. If proc is 0, suspend indefinitely
|
|
void | suspend () |
| suspend process
|
|
void | wakeUp (uint32 result) |
| Wake up when the process we were waiting for has finished.
|
|
virtual void | onWakeUp () |
| A hook to add aditional behavior on wakeup, before anything else happens.
|
|
void | setItemNum (ObjId it) |
|
void | setType (uint16 ty) |
|
void | setTicksPerRun (uint32 val) |
|
ProcId | getPid () const |
|
ObjId | getItemNum () const |
|
uint16 | getType () const |
|
uint32 | getTicksPerRun () const |
|
bool | loadData (Common::ReadStream *rs, uint32 version) |
| load Process data
|
|
bool | validateWaiters () const |
|
|
enum | CombatMode { CM_WAITING = 0,
CM_PATHFINDING,
CM_ATTACKING
} |
|
|
bool | isValidTarget (const Actor *target) const |
|
bool | isEnemy (const Actor *target) const |
|
bool | inAttackRange () const |
|
Direction | getTargetDirection () const |
|
void | turnToDirection (Direction direction) |
|
void | waitForTarget () |
|
|
ObjId | _target |
|
ObjId | _fixedTarget |
|
enum Ultima::Ultima8::CombatProcess::CombatMode | _combatMode |
|
ProcId | _pid |
| process id
|
|
uint32 | _flags |
|
uint32 | _ticksPerRun |
|
ObjId | _itemNum |
| item we are assigned to
|
|
uint16 | _type |
|
uint32 | _result |
| process result
|
|
Std::vector< ProcId > | _waiting |
|
The documentation for this class was generated from the following file: