$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

AiForceManager Class Reference

#include <ai_local.h>

List of all members.


Public Member Functions

size_t Size () const
const AiForceoperator[] (unsigned int index) const
AiForceoperator[] (unsigned int index)
int getIndex (AiForce *force) const
unsigned int getScriptForce (unsigned int index)
ai_force.cpp - AI force functions.
 AiForceManager ()
void RemoveDeadUnit ()
bool Assign (CUnit &unit)
void Update ()
unsigned int FindFreeForce (AiForceRole role=AiForceRoleDefault)
void CheckUnits (int *counter)

Detailed Description

AI force manager.

A Forces container for the force manager to handle


Constructor & Destructor Documentation

AiForceManager::AiForceManager (  ) 


Member Function Documentation

size_t AiForceManager::Size (  )  const [inline]

const AiForce& AiForceManager::operator[] ( unsigned int  index  )  const [inline]

AiForce& AiForceManager::operator[] ( unsigned int  index  )  [inline]

int AiForceManager::getIndex ( AiForce force  )  const [inline]

unsigned int AiForceManager::getScriptForce ( unsigned int  index  )  [inline]

void AiForceManager::RemoveDeadUnit (  ) 

Cleanup units in forces.

bool AiForceManager::Assign ( CUnit unit  ) 

Ai assign unit to force.

Parameters:
unit Unit to assign to force.

void AiForceManager::Update (  ) 

unsigned int AiForceManager::FindFreeForce ( AiForceRole  role = AiForceRoleDefault  ) 

void AiForceManager::CheckUnits ( int *  counter  ) 


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.