$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <unit.h>
Public Member Functions | |
COrder () | |
goal of the order (if any) | |
~COrder () | |
void | Init () |
bool | HasGoal () const |
Extra command argument. | |
CUnit * | GetGoal () const |
void | SetGoal (CUnit *const new_goal) |
void | ClearGoal () |
unit.cpp - The units. | |
COrder (const COrder &ths) | |
void | Release () |
COrder & | operator= (const COrder &rhs) |
bool | CheckRange () |
Public Attributes | |
int | Range |
unsigned int | MinRange |
How far away. | |
unsigned char | Width |
How far away minimum. | |
unsigned char | Height |
Goal Width (used when Goal is not). | |
unsigned char | Action |
Goal Height (used when Goal is not). | |
unsigned char | CurrentResource |
global action | |
Vec2i | goalPos |
union { | |
Vec2i Patrol | |
union { | |
Vec2i Pos | |
CUnit * Mine | |
position for terrain resource. | |
} Resource | |
position for patroling. | |
SpellType * Spell | |
CUpgrade * Upgrade | |
spell when casting. | |
CUnitType * Type | |
upgrade. | |
} | Arg1 |
or tile coordinate of destination | |
Friends | |
void | CclParseOrder (lua_State *l, COrder *order) |
CUnit::COrder::COrder | ( | ) | [inline] |
goal of the order (if any)
CUnit::COrder::COrder | ( | const COrder & | ths | ) |
CUnit::COrder::~COrder | ( | ) | [inline] |
void CUnit::COrder::Release | ( | ) |
CUnit::COrder & CUnit::COrder::operator= | ( | const COrder & | rhs | ) |
bool CUnit::COrder::CheckRange | ( | ) |
void CUnit::COrder::Init | ( | ) | [inline] |
bool CUnit::COrder::HasGoal | ( | ) | const [inline] |
Extra command argument.
CUnit* CUnit::COrder::GetGoal | ( | ) | const [inline] |
void CUnit::COrder::SetGoal | ( | CUnit *const | new_goal | ) | [inline] |
void CUnit::COrder::ClearGoal | ( | ) | [inline] |
void CclParseOrder | ( | lua_State * | l, | |
COrder * | order | |||
) | [friend] |
unsigned int CUnit::COrder::MinRange |
How far away.
unsigned char CUnit::COrder::Width |
How far away minimum.
unsigned char CUnit::COrder::Height |
Goal Width (used when Goal is not).
unsigned char CUnit::COrder::Action |
Goal Height (used when Goal is not).
unsigned char CUnit::COrder::CurrentResource |
global action
position for terrain resource.
union { ... } CUnit::COrder::Resource |
position for patroling.
spell when casting.
upgrade.
union { ... } CUnit::COrder::Arg1 |
or tile coordinate of destination