freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DeferredAction Class Referencefinal

Deferred Action is used when some action needs to be done at next physics turn. More...

#include <DeferredAction.h>

Inheritance diagram for DeferredAction:
Inheritance graph
[legend]
Collaboration diagram for DeferredAction:
Collaboration graph
[legend]

Public Member Functions

 DeferredAction (Animal *attached)
 
DeferredActionoperator= (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
 
- Private Member Functions inherited from Xyz
 Xyz (short x, short y, short z)
 
 Xyz ()
 
short Z () const
 
void SetXyz (short x, short y, short z)
 
- Private Member Functions inherited from Xy
 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
 
- Private Attributes inherited from Xyz
short z_self
 
- Private Attributes inherited from Xy
short x_self
 
short y_self
 

Detailed Description

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.

Constructor & Destructor Documentation

DeferredAction::DeferredAction ( Animal attached)
explicit

Definition at line 188 of file DeferredAction.cpp.

DeferredAction::DeferredAction ( const DeferredAction )
delete

Member Function Documentation

void DeferredAction::Build ( ) const
private

Definition at line 44 of file DeferredAction.cpp.

void DeferredAction::Damage ( ) const
private

Definition at line 85 of file DeferredAction.cpp.

int DeferredAction::GetActionType ( ) const
void DeferredAction::GhostMove ( ) const
private

Definition at line 26 of file DeferredAction.cpp.

void DeferredAction::Jump ( ) const
private

Definition at line 38 of file DeferredAction.cpp.

void DeferredAction::MakeAction ( ) const

Definition at line 174 of file DeferredAction.cpp.

void DeferredAction::Move ( ) const
private

Definition at line 33 of file DeferredAction.cpp.

DeferredAction& DeferredAction::operator= ( const DeferredAction )
delete
void DeferredAction::Pour ( ) const
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.

void DeferredAction::SetFire ( ) const
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.

void DeferredAction::Throw ( ) const
private

Definition at line 94 of file DeferredAction.cpp.

Member Data Documentation

Animal* const DeferredAction::attachedBlock
private

Definition at line 68 of file DeferredAction.h.

int DeferredAction::destSlot
private

Definition at line 69 of file DeferredAction.h.

int DeferredAction::num
private

Definition at line 70 of file DeferredAction.h.

int DeferredAction::srcSlot
private

Definition at line 69 of file DeferredAction.h.

deferred_actions DeferredAction::type
private

Definition at line 67 of file DeferredAction.h.


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