_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <time.h>#include "stratagus.h"#include "version.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_defend.h"#include "action/action_die.h"#include "action/action_explore.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 "game.h"#include "interface.h"#include "iocompat.h"#include "luacallback.h"#include "map.h"#include "missile.h"#include "parameters.h"#include "pathfinder.h"#include "player.h"#include "script.h"#include "spells.h"#include "unit.h"#include "unit_find.h"#include "unit_manager.h"#include "unittype.h"#include "st_backtrace.h"actions.cpp - The actions. | |
| unsigned | SyncHash |
| void | CclParseOrder (lua_State *l, CUnit &unit, COrderPtr *orderPtr) |
| Parse order. More... | |
| static void | IncreaseVariable (CUnit &unit, int index) |
| static void | HandleBuffsEachCycle (CUnit &unit) |
| static bool | HandleBurnAndPoison (CUnit &unit) |
| static void | HandleBuffsEachSecond (CUnit &unit) |
| static void | HandleUnitAction (CUnit &unit) |
| template<typename UNITP_ITERATOR > | |
| static void | UnitActionsEachSecond (UNITP_ITERATOR begin, UNITP_ITERATOR end) |
| static void | DumpUnitInfo (CUnit &unit) |
| template<typename UNITP_ITERATOR > | |
| static void | UnitActionsEachCycle (UNITP_ITERATOR begin, UNITP_ITERATOR end) |
| void | UnitActions () |
| Handle the actions of all units each game cycle. More... | |
Parse order.
Parse order
| l | Lua state. |
| order | OUT: resulting order. |
Handle things about the unit that decay over time each cycle
| unit | The unit that the decay is handled for |
Handle things about the unit that decay over time each second
| unit | The unit that the decay is handled for |
|
static |
Modify unit's health according to burn and poison
| unit | the unit to operate on |
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 |
|
static |
| unsigned SyncHash |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.