____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <ai_local.h>
Public Member Functions | |
| AiForce () | |
| void | Reset () |
Public Attributes | |
| bool | Completed |
| Flag saying force is complete build. | |
| bool | Defending |
| Flag saying force is defending. | |
| bool | Attacking |
| Flag saying force is attacking. | |
| char | Role |
| Role of the force. | |
| std::vector< AiUnitType > | UnitTypes |
| Count and types of unit-type. | |
| std::vector< CUnit * > | Units |
| Units in the force. | |
| int | State |
| Attack state. | |
| int | GoalX |
| Attack point X tile map position. | |
| int | GoalY |
| Attack point Y tile map position. | |
| bool | MustTransport |
| Flag must use transporter. | |
A force is a group of units belonging together.
Definition at line 106 of file ai_local.h.
| AiForce::AiForce | ( | ) | [inline] |
Definition at line 108 of file ai_local.h.
| void AiForce::Reset | ( | ) | [inline] |
Definition at line 111 of file ai_local.h.
References Attacking, Completed, Defending, GoalX, GoalY, MustTransport, Role, State, Units, and UnitTypes.
Referenced by AiAttackWithForce().
| bool AiForce::Completed |
Flag saying force is complete build.
Definition at line 123 of file ai_local.h.
Referenced by AiCheckBelongsToForce(), AiCheckUnits(), AiCleanForce(), CclAiCheckForce(), CclAiDump(), CclAiWaitForce(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| bool AiForce::Defending |
Flag saying force is defending.
Definition at line 124 of file ai_local.h.
Referenced by AiAssignToForce(), AiCheckUnits(), AiForceManager(), AiHelpMe(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| bool AiForce::Attacking |
Flag saying force is attacking.
Definition at line 125 of file ai_local.h.
Referenced by AiAssignToForce(), AiAttackWithForce(), AiAttackWithForceAt(), AiCheckUnits(), AiCleanForce(), AiForceAttacks(), AiForceManager(), AiHelpMe(), CclAiDump(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| char AiForce::Role |
Role of the force.
Definition at line 126 of file ai_local.h.
Referenced by CclAiForceRole(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| std::vector<AiUnitType> AiForce::UnitTypes |
Count and types of unit-type.
Definition at line 128 of file ai_local.h.
Referenced by AiCheckBelongsToForce(), AiCheckUnits(), AiCleanForce(), CclAiDump(), CclAiForce(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| std::vector<CUnit *> AiForce::Units |
Units in the force.
Definition at line 129 of file ai_local.h.
Referenced by AiAssignFreeUnitsToForce(), AiAssignToForce(), AiAttackWithForce(), AiAttackWithForceAt(), AiCheckBelongsToForce(), AiCheckUnits(), AiCleanForce(), AiForceAttacks(), AiForceManager(), AiHelpMe(), AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| int AiForce::State |
Attack state.
Definition at line 134 of file ai_local.h.
Referenced by AiAttackWithForce(), AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| int AiForce::GoalX |
Attack point X tile map position.
Definition at line 135 of file ai_local.h.
Referenced by AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
| int AiForce::GoalY |
Attack point Y tile map position.
Definition at line 136 of file ai_local.h.
Referenced by AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
Flag must use transporter.
Definition at line 137 of file ai_local.h.
Referenced by AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().
1.5.6