_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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 "action/action_still.h"#include "animation.h"#include "commands.h"#include "iolib.h"#include "map.h"#include "missile.h"#include "player.h"#include "script.h"#include "settings.h"#include "spells.h"#include "tileset.h"#include "unit.h"#include "unit_find.h"#include "unittype.h"#include "video.h"Classes | |
| class | IsTargetInRange |
| class | IsAReparableUnitBy |
action_still.cpp - The stand still action. | |
| enum | { SUB_STILL_STANDBY = 0, SUB_STILL_ATTACK } |
| void | UnHideUnit (CUnit &unit) |
| static bool | MoveRandomly (CUnit &unit) |
| bool | AutoCast (CUnit &unit) |
| static CUnit * | UnitToRepairInRange (const CUnit &unit, int range) |
| bool | AutoRepair (CUnit &unit) |
| bool | AutoAttack (CUnit &unit) |
| 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
|
static |
Move in a random direction
Try to find a repairable unit around and return it.
| unit | unit which can repair. |
| range | range to find a repairable unit. |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.