$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 "stratagus.h"
#include "actions.h"
#include "action/action_attack.h"
#include "action/action_board.h"
#include "action/action_build.h"
#include "action/action_built.h"
#include "action/action_die.h"
#include "action/action_follow.h"
#include "action/action_move.h"
#include "action/action_patrol.h"
#include "action/action_repair.h"
#include "action/action_research.h"
#include "action/action_resource.h"
#include "action/action_spellcast.h"
#include "action/action_still.h"
#include "action/action_train.h"
#include "action/action_unload.h"
#include "action/action_upgradeto.h"
#include "animation/animation_die.h"
#include "commands.h"
#include "luacallback.h"
#include "map.h"
#include "missile.h"
#include "pathfinder.h"
#include "player.h"
#include "script.h"
#include "unit.h"
#include "unit_find.h"
#include "unit_manager.h"
#include "unittype.h"
actions.cpp - The actions. | |
unsigned | SyncHash |
void | CclParseOrder (lua_State *l, CUnit &unit, COrderPtr *orderPtr) |
Parse order. | |
static void | HandleRegenerations (CUnit &unit) |
static void | HandleBuffs (CUnit &unit, int amount) |
static void | HandleUnitAction (CUnit &unit) |
template<typename UNITP_ITERATOR> | |
static void | UnitActionsEachSecond (UNITP_ITERATOR begin, UNITP_ITERATOR end) |
template<typename UNITP_ITERATOR> | |
static void | UnitActionsEachCycle (UNITP_ITERATOR begin, UNITP_ITERATOR end) |
void | UnitActions () |
Handle the actions of all units each game cycle. |
Parse order.
Parse order
l | Lua state. | |
order | OUT: resulting order. |
static void HandleBuffs | ( | CUnit & | unit, | |
int | amount | |||
) | [static] |
Handle things about the unit that decay over time
unit | The unit that the decay is handled for | |
amount | The amount of time to make up for.(in cycles) |
static void HandleRegenerations | ( | CUnit & | unit | ) | [static] |
Increment a unit's health
unit | the unit to operate on |
static void HandleUnitAction | ( | CUnit & | unit | ) | [static] |
Handle the action of a unit.
unit | Pointer to handled unit. |
void UnitActions | ( | ) |
Handle the actions of all units each game cycle.
Update the actions of all units each game cycle/second.
static void UnitActionsEachCycle | ( | UNITP_ITERATOR | begin, | |
UNITP_ITERATOR | end | |||
) | [inline, static] |
static void UnitActionsEachSecond | ( | UNITP_ITERATOR | begin, | |
UNITP_ITERATOR | end | |||
) | [inline, static] |
unsigned SyncHash |