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

CUnitManager Class Reference

#include <unit_manager.h>

List of all members.


Public Member Functions

unit_manager.cpp - Unit manager.
void Init ()
 Unit manager.
CUnitAllocUnit ()
void ReleaseUnit (CUnit *unit)
void Save (CFile *file)

Member Function Documentation

void CUnitManager::Init (  ) 

Unit manager.

Initial memory allocation for units.

CUnit * CUnitManager::AllocUnit (  ) 

Allocate a new unit

Returns:
New unit

void CUnitManager::ReleaseUnit ( CUnit unit  ) 

Release a unit

Parameters:
unit Unit to release

void CUnitManager::Save ( CFile file  ) 

Save state of unit manager to file.

Parameters:
file Output file.


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