____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <unit.h>
Public Member Functions | |
| COrder () | |
| void | Init () |
Public Attributes | |
| unsigned char | Action |
| global action | |
| int | Range |
| How far away. | |
| unsigned int | MinRange |
| How far away minimum. | |
| unsigned char | Width |
| Goal Width (used when Goal is not). | |
| unsigned char | Height |
| Goal Height (used when Goal is not). | |
| CUnit * | Goal |
| goal of the order (if any) | |
| int | X |
| or X tile coordinate of destination | |
| int | Y |
| or Y tile coordinate of destination | |
| CUnitType * | Type |
| Unit-type argument. | |
| union { | |
| struct { | |
| int X | |
| X position for patroling. | |
| int Y | |
| Y position for patroling. | |
| } Patrol | |
| position. | |
| SpellType * Spell | |
| spell when casting. | |
| } | Arg1 |
| Extra command argument. | |
Definition at line 410 of file unit.h.
| void COrder::Init | ( | void | ) | [inline] |
Definition at line 418 of file unit.h.
References Action, Arg1, Assert, Goal, Height, MinRange, Range, Type, UnitActionNone, Width, X, and Y.
Referenced by ClearSavedAction(), CommandAttack(), CommandAttackGround(), CommandBoard(), CommandBuildBuilding(), CommandFollow(), CommandMove(), CommandPatrolUnit(), CommandRepair(), CommandResource(), CommandSpellCast(), CommandStandGround(), CommandStopUnit(), CommandTrainUnit(), and CommandUnload().
| unsigned char COrder::Action |
global action
Definition at line 428 of file unit.h.
Referenced by AiCheckRepair(), AttackTarget(), AutoAttack(), CanHandleOrder(), CclParseOrder(), CheckForDeadGoal(), CheckForTargetInRange(), ClearSavedAction(), CommandAttack(), CommandAttackGround(), CommandBoard(), CommandBuildBuilding(), CommandFollow(), CommandMove(), CommandPatrolUnit(), CommandRepair(), CommandResource(), CommandSpellCast(), CommandStandGround(), CommandStopUnit(), CommandTrainUnit(), CommandUnload(), GetOrderPosition(), HandleActionAttack(), HandleActionTrain(), HitUnit(), Init(), CUnit::Init(), MoveToTarget(), RestoreSavedOrder(), SaveOrder(), and ShowSingleOrder().
| int COrder::Range |
How far away.
Definition at line 431 of file unit.h.
Referenced by AttackTarget(), AutoAttack(), CclParseOrder(), CheckForTargetInRange(), CommandAttack(), CommandAttackGround(), CommandBoard(), CommandBuildBuilding(), CommandFollow(), CommandRepair(), CommandResource(), CommandSpellCast(), Init(), and SaveOrder().
| unsigned int COrder::MinRange |
How far away minimum.
Definition at line 432 of file unit.h.
Referenced by AttackTarget(), CclParseOrder(), CheckForTargetInRange(), CommandAttack(), CommandAttackGround(), CommandBuildBuilding(), Init(), and SaveOrder().
| unsigned char COrder::Width |
Goal Width (used when Goal is not).
Definition at line 433 of file unit.h.
Referenced by CclParseOrder(), CommandBuildBuilding(), Init(), and SaveOrder().
| unsigned char COrder::Height |
Goal Height (used when Goal is not).
Definition at line 434 of file unit.h.
Referenced by CclParseOrder(), CommandBuildBuilding(), Init(), and SaveOrder().
goal of the order (if any)
Definition at line 436 of file unit.h.
Referenced by AiCheckRepair(), AiEachCycle(), AttackTarget(), AutoAttack(), CclParseOrder(), CheckForDeadGoal(), CheckForTargetInRange(), CommandAnyOrder(), CommandAttack(), CommandBoard(), CommandFollow(), CommandRepair(), CommandResource(), CommandSpellCast(), CommandUnload(), GetOrderPosition(), HandleActionAttack(), HandleActionTrain(), Init(), CUnit::Init(), MoveToTarget(), ReleaseOrder(), RestoreSavedOrder(), SaveOrder(), and UnitClearOrders().
| int COrder::X |
or X tile coordinate of destination
X position for patroling.
Definition at line 437 of file unit.h.
Referenced by AttackTarget(), AutoAttack(), CclParseOrder(), CheckForTargetInRange(), CommandAttack(), CommandAttackGround(), CommandBuildBuilding(), CommandFollow(), CommandMove(), CommandPatrolUnit(), CommandRepair(), CommandSpellCast(), CommandUnload(), GetOrderPosition(), Init(), CUnit::Init(), SaveOrder(), and ShowSingleOrder().
| int COrder::Y |
or Y tile coordinate of destination
Y position for patroling.
Definition at line 438 of file unit.h.
Referenced by AttackTarget(), AutoAttack(), CclParseOrder(), CheckForTargetInRange(), CommandAttack(), CommandAttackGround(), CommandBuildBuilding(), CommandFollow(), CommandMove(), CommandPatrolUnit(), CommandRepair(), CommandSpellCast(), CommandUnload(), GetOrderPosition(), Init(), CUnit::Init(), SaveOrder(), and ShowSingleOrder().
Unit-type argument.
Definition at line 439 of file unit.h.
Referenced by CclParseOrder(), CommandBuildBuilding(), CommandTrainUnit(), GetOrderPosition(), Init(), SaveOrder(), and ShowSingleOrder().
| struct { ... } COrder::Patrol |
spell when casting.
Definition at line 446 of file unit.h.
Referenced by CclParseOrder(), CommandSpellCast(), and SaveOrder().
| union { ... } COrder::Arg1 |
Extra command argument.
Referenced by CclParseOrder(), CommandPatrolUnit(), CommandSpellCast(), COrder(), Init(), SaveOrder(), and ShowSingleOrder().
1.5.6