____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

AiForce Class Reference

#include <ai_local.h>

List of all members.

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< AiUnitTypeUnitTypes
 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.


Detailed Description

Define an AI force.

A force is a group of units belonging together.

Definition at line 106 of file ai_local.h.


Constructor & Destructor Documentation

AiForce::AiForce (  )  [inline]

Definition at line 108 of file ai_local.h.


Member Function Documentation

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().


Member Data Documentation

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().

Flag saying force is defending.

Definition at line 124 of file ai_local.h.

Referenced by AiAssignToForce(), AiCheckUnits(), AiForceManager(), AiHelpMe(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().

Role of the force.

Definition at line 126 of file ai_local.h.

Referenced by CclAiForceRole(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().

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

Attack state.

Definition at line 134 of file ai_local.h.

Referenced by AiAttackWithForce(), AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().

Attack point X tile map position.

Definition at line 135 of file ai_local.h.

Referenced by AiPlanAttack(), CclDefineAiPlayer(), Reset(), and SaveAiPlayer().

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().


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:22 2009 for Bos Wars by  doxygen 1.5.6