Go to the source code of this file.
Classes | |
class | C4Command |
Enumerations | |
enum | C4CMD { C4CMD_None , C4CMD_Follow , C4CMD_MoveTo , C4CMD_Enter , C4CMD_Exit , C4CMD_Grab , C4CMD_Throw , C4CMD_UnGrab , C4CMD_Jump , C4CMD_Wait , C4CMD_Get , C4CMD_Put , C4CMD_Drop , C4CMD_Dig , C4CMD_Activate , C4CMD_PushTo , C4CMD_Transfer , C4CMD_Attack , C4CMD_Buy , C4CMD_Sell , C4CMD_Acquire , C4CMD_Retry , C4CMD_Home , C4CMD_Call , C4CMD_Take , C4CMD_Take2 } |
Functions | |
const char * | CommandName (int32_t iCommand) |
const char * | CommandNameID (int32_t iCommand) |
int32_t | CommandByName (const char *szCommand) |
Variables | |
const int32_t | C4CMD_First = C4CMD_Follow |
const int32_t | C4CMD_Last = C4CMD_Take2 |
const int32_t | C4CMD_Mode_SilentSub = 0 |
const int32_t | C4CMD_Mode_Base = 1 |
const int32_t | C4CMD_Mode_SilentBase = 2 |
const int32_t | C4CMD_Mode_Sub = 3 |
const int32_t | C4CMD_MoveTo_NoPosAdjust = 1 |
const int32_t | C4CMD_MoveTo_PushTarget = 2 |
const int32_t | C4CMD_Enter_PushTarget = 2 |
enum C4CMD |
Definition at line 26 of file C4Command.h.
int32_t CommandByName | ( | const char * | szCommand | ) |
Definition at line 126 of file C4Command.cpp.
References C4CMD_First, C4CMD_Last, C4CMD_None, CommandName(), and SEqual().
const char* CommandName | ( | int32_t | iCommand | ) |
Definition at line 46 of file C4Command.cpp.
References C4CMD_Acquire, C4CMD_Activate, C4CMD_Attack, C4CMD_Buy, C4CMD_Call, C4CMD_Dig, C4CMD_Drop, C4CMD_Enter, C4CMD_Exit, C4CMD_Follow, C4CMD_Get, C4CMD_Grab, C4CMD_Home, C4CMD_Jump, C4CMD_MoveTo, C4CMD_None, C4CMD_PushTo, C4CMD_Put, C4CMD_Retry, C4CMD_Sell, C4CMD_Take, C4CMD_Take2, C4CMD_Throw, C4CMD_Transfer, C4CMD_UnGrab, and C4CMD_Wait.
Referenced by CommandByName(), C4Object::Draw(), C4Object::ExecuteCommand(), C4Command::Fail(), InitEnumAdaptCommandEntries(), and C4Object::SetCommand().
const char* CommandNameID | ( | int32_t | iCommand | ) |
Definition at line 80 of file C4Command.cpp.
References C4CMD_Acquire, C4CMD_Activate, C4CMD_Attack, C4CMD_Buy, C4CMD_Call, C4CMD_Dig, C4CMD_Drop, C4CMD_Enter, C4CMD_Exit, C4CMD_Follow, C4CMD_Get, C4CMD_Grab, C4CMD_Home, C4CMD_Jump, C4CMD_MoveTo, C4CMD_None, C4CMD_PushTo, C4CMD_Put, C4CMD_Retry, C4CMD_Sell, C4CMD_Take, C4CMD_Take2, C4CMD_Throw, C4CMD_Transfer, C4CMD_UnGrab, and C4CMD_Wait.
Referenced by C4Command::Fail().
const int32_t C4CMD_Enter_PushTarget = 2 |
Definition at line 68 of file C4Command.h.
Referenced by C4Command::Enter(), and C4Command::PushTo().
const int32_t C4CMD_First = C4CMD_Follow |
Definition at line 56 of file C4Command.h.
Referenced by C4Object::AddCommand(), CommandByName(), and InitEnumAdaptCommandEntries().
const int32_t C4CMD_Last = C4CMD_Take2 |
Definition at line 57 of file C4Command.h.
Referenced by C4Object::AddCommand(), CommandByName(), and InitEnumAdaptCommandEntries().
const int32_t C4CMD_Mode_Base = 1 |
Definition at line 60 of file C4Command.h.
Referenced by C4Command::Fail(), and C4Object::SetCommand().
const int32_t C4CMD_Mode_SilentBase = 2 |
Definition at line 61 of file C4Command.h.
const int32_t C4CMD_Mode_SilentSub = 0 |
Definition at line 59 of file C4Command.h.
Referenced by C4Command::Clear(), C4Command::Default(), and C4Command::Fail().
const int32_t C4CMD_Mode_Sub = 3 |
Definition at line 62 of file C4Command.h.
Referenced by C4Command::Acquire(), and C4Command::Fail().
const int32_t C4CMD_MoveTo_NoPosAdjust = 1 |
Definition at line 65 of file C4Command.h.
Referenced by C4Command::InitEvaluation().
const int32_t C4CMD_MoveTo_PushTarget = 2 |
Definition at line 66 of file C4Command.h.
Referenced by C4Command::Enter(), C4Command::MoveTo(), and C4Command::PushTo().