#include "C4Include.h"#include "object/C4Command.h"#include "gui/C4GameMessage.h"#include "landscape/C4Landscape.h"#include "lib/C4Random.h"#include "object/C4Def.h"#include "object/C4DefList.h"#include "object/C4GameObjects.h"#include "object/C4Object.h"#include "object/C4ObjectCom.h"#include "object/C4ObjectInfo.h"#include "object/C4ObjectMenu.h"#include "platform/C4SoundSystem.h"#include "player/C4Player.h"#include "player/C4PlayerList.h"Go to the source code of this file.
Classes | |
| struct | ObjectAddWaypoint |
Functions | |
| const char * | CommandName (int32_t iCommand) |
| const char * | CommandNameID (int32_t iCommand) |
| bool | InitEnumAdaptCommandEntries () |
| int32_t | CommandByName (const char *szCommand) |
| bool | FreeMoveTo (C4Object *cObj) |
| void | AdjustMoveToTarget (int32_t &rX, int32_t &rY, bool fFreeMove, int32_t iShapeHgt) |
| bool | AdjustSolidOffset (int32_t &rX, int32_t &rY, int32_t iXOff, int32_t iYOff) |
| int32_t | SolidOnWhichSide (int32_t iX, int32_t iY) |
Variables | |
| const int32_t | MoveToRange =5 |
| const int32_t | LetGoRange1 =7 |
| const int32_t | LetGoRange2 =30 |
| const int32_t | DigRange =1 |
| const int32_t | FollowRange =6 |
| const int32_t | PushToRange =10 |
| const int32_t | DigOutPositionRange =15 |
| const int32_t | PathRange =20 |
| const int32_t | MaxPathRange =1000 |
| const int32_t | JumpAngle =35 |
| const int32_t | JumpLowAngle =80 |
| const int32_t | JumpAngleRange =10 |
| const int32_t | JumpHighAngle =0 |
| const int32_t | FlightAngleRange =60 |
| const int32_t | LetGoHangleAngle =110 |
| StdEnumAdapt< int32_t >::Entry | EnumAdaptCommandEntries [C4CMD_Last - C4CMD_First+2] |
| const bool | InitEnumAdaptCommandEntriesDummy = InitEnumAdaptCommandEntries() |
| void AdjustMoveToTarget | ( | int32_t & | rX, |
| int32_t & | rY, | ||
| bool | fFreeMove, | ||
| int32_t | iShapeHgt | ||
| ) |
Definition at line 142 of file C4Command.cpp.
References GBackSemiSolid(), GBackSolid(), C4Landscape::GetHeight(), and Landscape.
Referenced by C4TransferZone::GetEntryPoint(), C4Command::InitEvaluation(), and C4Command::JumpControl().
| bool AdjustSolidOffset | ( | int32_t & | rX, |
| int32_t & | rY, | ||
| int32_t | iXOff, | ||
| int32_t | iYOff | ||
| ) |
Definition at line 165 of file C4Command.cpp.
References GBackSolid().
Referenced by ObjectAddWaypoint::operator()().
| 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().
| bool FreeMoveTo | ( | C4Object * | cObj | ) |
Definition at line 134 of file C4Command.cpp.
References DFA_FLOAT, and C4Object::GetProcedure().
Referenced by C4Command::InitEvaluation().
| bool InitEnumAdaptCommandEntries | ( | ) |
Definition at line 114 of file C4Command.cpp.
References C4CMD_First, C4CMD_Last, CommandName(), and EnumAdaptCommandEntries.
| int32_t SolidOnWhichSide | ( | int32_t | iX, |
| int32_t | iY | ||
| ) |
Definition at line 186 of file C4Command.cpp.
References GBackSolid().
Referenced by C4Command::JumpControl().
| const int32_t DigOutPositionRange =15 |
Definition at line 38 of file C4Command.cpp.
Referenced by C4Command::Get().
| const int32_t DigRange =1 |
Definition at line 37 of file C4Command.cpp.
Referenced by C4Command::Dig().
| StdEnumAdapt<int32_t>::Entry EnumAdaptCommandEntries[C4CMD_Last - C4CMD_First+2] |
Definition at line 44 of file C4Command.cpp.
Referenced by C4Command::CompileFunc(), and InitEnumAdaptCommandEntries().
| const int32_t FlightAngleRange =60 |
Definition at line 41 of file C4Command.cpp.
Referenced by C4Command::FlightControl().
| const int32_t FollowRange =6 |
Definition at line 38 of file C4Command.cpp.
Referenced by C4Command::Follow().
| const bool InitEnumAdaptCommandEntriesDummy = InitEnumAdaptCommandEntries() |
Definition at line 124 of file C4Command.cpp.
| const int32_t JumpAngle =35 |
Definition at line 40 of file C4Command.cpp.
Referenced by C4Command::JumpControl().
| const int32_t JumpAngleRange =10 |
Definition at line 40 of file C4Command.cpp.
Referenced by C4Command::JumpControl().
| const int32_t JumpHighAngle =0 |
Definition at line 40 of file C4Command.cpp.
Referenced by C4Command::JumpControl().
| const int32_t JumpLowAngle =80 |
Definition at line 40 of file C4Command.cpp.
Referenced by C4Command::JumpControl().
| const int32_t LetGoHangleAngle =110 |
Definition at line 42 of file C4Command.cpp.
Referenced by C4Command::MoveTo().
| const int32_t LetGoRange1 =7 |
Definition at line 37 of file C4Command.cpp.
Referenced by C4Command::MoveTo().
| const int32_t LetGoRange2 =30 |
Definition at line 37 of file C4Command.cpp.
Referenced by C4Command::MoveTo().
| const int32_t MaxPathRange =1000 |
Definition at line 39 of file C4Command.cpp.
Referenced by C4Command::MoveTo().
| const int32_t MoveToRange =5 |
Definition at line 37 of file C4Command.cpp.
Referenced by C4Command::Dig(), C4Command::Drop(), C4Command::MoveTo(), and C4Command::Throw().
| const int32_t PathRange =20 |
Definition at line 39 of file C4Command.cpp.
Referenced by C4Command::MoveTo().
| const int32_t PushToRange =10 |
Definition at line 38 of file C4Command.cpp.
Referenced by C4Command::PushTo().