$treeview $search $mathjax
Stratagus
2.2.7
$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 "unitptr.h"
#include "vec2i.h"
Go to the source code of this file.
Classes | |
class | COrder |
actions.h - The actions headerfile. | |
enum | UnitAction { UnitActionNone, UnitActionStill, UnitActionStandGround, UnitActionFollow, UnitActionMove, UnitActionAttack, UnitActionAttackGround, UnitActionDie, UnitActionSpellCast, UnitActionTrain, UnitActionUpgradeTo, UnitActionResearch, UnitActionBuilt, UnitActionBoard, UnitActionUnload, UnitActionPatrol, UnitActionBuild, UnitActionRepair, UnitActionResource, UnitActionTransformInto } |
typedef COrder * | COrderPtr |
unsigned | SyncHash |
int | GetNumWaitingWorkers (const CUnit &mine) |
Hash calculated to find sync failures. | |
bool | AutoAttack (CUnit &unit) |
bool | AutoRepair (CUnit &unit) |
bool | AutoCast (CUnit &unit) |
void | UnHideUnit (CUnit &unit) |
int | DoActionMove (CUnit &unit) |
Generic move action. | |
void | AnimateActionAttack (CUnit &unit, COrder &order) |
Show attack animation. | |
void | CclParseOrder (lua_State *l, CUnit &unit, COrderPtr *order) |
Parse order. | |
void | UnitActions () |
Handle the actions of all units each game cycle. |
enum UnitAction |
All possible unit actions.
Show attack animation.
Animate unit attack!
unit | Unit, for that the attack animation is played. |
bool AutoAttack | ( | CUnit & | unit | ) |
Auto attack nearby units if possible
bool AutoCast | ( | CUnit & | unit | ) |
Auto cast a spell if possible
bool AutoRepair | ( | CUnit & | unit | ) |
Auto repair a unit if possible
Parse order.
Parse order
l | Lua state. | |
order | OUT: resulting order. |
int DoActionMove | ( | CUnit & | unit | ) |
Generic move action.
Unit moves! Generic function called from other actions.
unit | Pointer to unit. |
int GetNumWaitingWorkers | ( | const CUnit & | mine | ) |
Hash calculated to find sync failures.
void UnHideUnit | ( | CUnit & | unit | ) |
void UnitActions | ( | ) |
Handle the actions of all units each game cycle.
Update the actions of all units each game cycle/second.
unsigned SyncHash |