Advanced Strategic Command
Public Member Functions | Friends | List of all members
GameMap::IDManager Class Reference

#include <gamemap.h>

Public Member Functions

 IDManager ()
 
int getNewNetworkID ()
 returns a new and unique ID More...
 
void registerUnitNetworkID (Vehicle *veh)
 
void unregisterUnitNetworkID (Vehicle *veh)
 
void readData (tnstream &stream)
 
void writeData (tnstream &stream) const
 

Friends

class SpawnUnit
 
class SpawnMine
 
class GameMap
 

Detailed Description

Definition at line 298 of file gamemap.h.

Constructor & Destructor Documentation

GameMap::IDManager::IDManager ( )
inline

Definition at line 309 of file gamemap.h.

Member Function Documentation

int GameMap::IDManager::getNewNetworkID ( )
void GameMap::IDManager::readData ( tnstream stream)

Definition at line 1145 of file gamemap.cpp.

References tnstream::readInt().

Referenced by GameMap::read().

void GameMap::IDManager::registerUnitNetworkID ( Vehicle veh)

Definition at line 1124 of file gamemap.cpp.

References Vehicle::networkid.

Referenced by Vehicle::newFromStream(), and Vehicle::Vehicle().

void GameMap::IDManager::unregisterUnitNetworkID ( Vehicle veh)

Definition at line 1131 of file gamemap.cpp.

References Vehicle::networkid.

Referenced by Vehicle::~Vehicle().

void GameMap::IDManager::writeData ( tnstream stream) const

Definition at line 1150 of file gamemap.cpp.

References tnstream::writeInt().

Referenced by GameMap::write().

Friends And Related Function Documentation

friend class GameMap
friend

Definition at line 305 of file gamemap.h.

friend class SpawnMine
friend

Definition at line 304 of file gamemap.h.

friend class SpawnUnit
friend

Definition at line 303 of file gamemap.h.


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