freg
0.3
Free-Roaming Elementary Game
|
Deferred Action is used when some action needs to be done at next physics turn. More...
#include <DeferredAction.h>
Public Member Functions | |
DeferredAction (Animal *attached) | |
DeferredAction & | operator= (const DeferredAction &)=delete |
DeferredAction (const DeferredAction &)=delete | |
void | SetGhostMove (int dir) |
void | SetMove (int dir) |
void | SetJump () |
void | SetDamage (int x, int y, int z) |
void | SetPour (int x, int y, int z, int slot) |
void | SetSetFire (int x, int y, int z) |
void | SetBuild (int x, int y, int z, int builder_slot) |
Attached block should have inventory. More... | |
void | SetThrow (int x, int y, int z, int src_slot, int dest_slot, int unum) |
int | GetActionType () const |
void | MakeAction () const |
Private Member Functions | |
void | GhostMove () const |
void | Move () const |
void | Jump () const |
void | Build () const |
void | Damage () const |
void | Throw () const |
void | Pour () const |
void | SetFire () const |
![]() | |
Xyz (short x, short y, short z) | |
Xyz () | |
short | Z () const |
void | SetXyz (short x, short y, short z) |
![]() | |
Xy (short x, short y) | |
Xy () | |
short | X () const |
short | Y () const |
Private Attributes | |
deferred_actions | type |
Animal *const | attachedBlock |
int | srcSlot |
int | destSlot |
int | num |
![]() | |
short | z_self |
![]() | |
short | x_self |
short | y_self |
Deferred Action is used when some action needs to be done at next physics turn.
Xyz is action target coordinates.
Definition at line 41 of file DeferredAction.h.
|
explicit |
Definition at line 188 of file DeferredAction.cpp.
|
delete |
|
private |
Definition at line 44 of file DeferredAction.cpp.
|
private |
Definition at line 85 of file DeferredAction.cpp.
int DeferredAction::GetActionType | ( | ) | const |
|
private |
Definition at line 26 of file DeferredAction.cpp.
|
private |
Definition at line 38 of file DeferredAction.cpp.
void DeferredAction::MakeAction | ( | ) | const |
Definition at line 174 of file DeferredAction.cpp.
|
private |
Definition at line 33 of file DeferredAction.cpp.
|
delete |
|
private |
Definition at line 99 of file DeferredAction.cpp.
void DeferredAction::SetBuild | ( | int | x, |
int | y, | ||
int | z, | ||
int | builder_slot | ||
) |
Attached block should have inventory.
Definition at line 138 of file DeferredAction.cpp.
void DeferredAction::SetDamage | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 146 of file DeferredAction.cpp.
|
private |
Definition at line 117 of file DeferredAction.cpp.
void DeferredAction::SetGhostMove | ( | int | dir | ) |
Definition at line 126 of file DeferredAction.cpp.
void DeferredAction::SetJump | ( | ) |
Definition at line 136 of file DeferredAction.cpp.
void DeferredAction::SetMove | ( | int | dir | ) |
Definition at line 131 of file DeferredAction.cpp.
void DeferredAction::SetPour | ( | int | x, |
int | y, | ||
int | z, | ||
int | slot | ||
) |
Definition at line 161 of file DeferredAction.cpp.
void DeferredAction::SetSetFire | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 169 of file DeferredAction.cpp.
void DeferredAction::SetThrow | ( | int | x, |
int | y, | ||
int | z, | ||
int | src_slot, | ||
int | dest_slot, | ||
int | unum | ||
) |
Definition at line 151 of file DeferredAction.cpp.
|
private |
Definition at line 94 of file DeferredAction.cpp.
|
private |
Definition at line 68 of file DeferredAction.h.
|
private |
Definition at line 69 of file DeferredAction.h.
|
private |
Definition at line 70 of file DeferredAction.h.
|
private |
Definition at line 69 of file DeferredAction.h.
|
private |
Definition at line 67 of file DeferredAction.h.