____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include "unit.h"
#include "unittype.h"
#include "pathfinder.h"
#include "map.h"
#include "interface.h"
#include "actions.h"
Go to the source code of this file.
Functions | |
| void | HandleActionFollow (CUnit *unit) |
| Generic move action. | |
Definition in file action_follow.cpp.
| void HandleActionFollow | ( | CUnit * | unit | ) |
Generic move action.
Unit follow action:
| unit | Pointer to unit. |
Definition at line 60 of file action_follow.cpp.
References CUnit::Anim, Assert, AttackUnitsInReactRange(), CUnitType::CanAttack, CUnit::ClearAction(), CommandAttack(), DebugPrint, DoActionMove(), FlushCommands, CUnit::Frame, CMap::Info, CUnit::IsVisibleAsGoal(), Map, CMapInfo::MapHeight, CMapInfo::MapWidth, NewResetPath, NoUnitP, CUnit::OrderCount, CUnit::Orders, PF_REACHED, PF_UNREACHABLE, CUnit::Player, CUnit::RefsDecrease(), CUnit::SavedOrder, CUnit::State, CUnitType::StillFrame, CUnit::SubAction, CUnitType::TileHeight, CUnitType::TileWidth, CUnit::Type, CUnit::_unit_anim_::Unbreakable, UnitActionAttack, UnitActionStill, UnitUpdateHeading(), CUnit::Wait, CUnit::X, and CUnit::Y.
1.5.6