$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 <stdio.h>
#include <stdlib.h>
#include "stratagus.h"
#include "unit.h"
#include "unittype.h"
#include "actions.h"
#include "pathfinder.h"
#include "map.h"
Functions | |
action_patrol.cpp - The patrol action. | |
bool | AutoRepair (CUnit &unit) |
bool | AutoCast (CUnit &unit) |
static void | SwapPatrolPoints (CUnit &unit) |
void | HandleActionPatrol (CUnit &unit) |
Handle command patrol. |
bool AutoCast | ( | CUnit & | unit | ) |
Auto cast a spell if possible
bool AutoRepair | ( | CUnit & | unit | ) |
Auto repair a unit if possible
void HandleActionPatrol | ( | CUnit & | unit | ) |
Handle command patrol.
Unit Patrol: The unit patrols between two points. Any enemy unit in reaction range is attacked.
unit | Patroling unit pointer. |
static void SwapPatrolPoints | ( | CUnit & | unit | ) | [static] |
Swap the patrol points.