Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
AbstractTaskContainer Class Referenceabstract

#include <abstracttaskcontainer.h>

Inheritance diagram for AbstractTaskContainer:
Inheritance graph
[legend]

Public Member Functions

virtual void read (tnstream &stream)=0
 
virtual void write (tnstream &stream) const =0
 
virtual ~AbstractTaskContainer ()
 

Protected Member Functions

void writeStorage (tnstream &stream) const
 
void readStorage (tnstream &stream)
 
 AbstractTaskContainer ()
 

Protected Attributes

MemoryStreamStorageplayerTasks [GameMap::maxTotalPlayers]
 
MemoryStreamStoragenewTasks
 
int lastPlayer
 

Static Protected Attributes

static const int taskMagic = 0xda5cda5c
 

Detailed Description

Definition at line 30 of file abstracttaskcontainer.h.

Constructor & Destructor Documentation

AbstractTaskContainer::AbstractTaskContainer ( )
protected

Definition at line 25 of file abstracttaskcontainer.cpp.

References GameMap::maxTotalPlayers, and playerTasks.

AbstractTaskContainer::~AbstractTaskContainer ( )
virtual

Definition at line 31 of file abstracttaskcontainer.cpp.

References GameMap::maxTotalPlayers, newTasks, and playerTasks.

Member Function Documentation

virtual void AbstractTaskContainer::read ( tnstream stream)
pure virtual

Implemented in TaskContainer, and TaskHibernatingContainer.

Referenced by GameMap::read().

void AbstractTaskContainer::readStorage ( tnstream stream)
protected
virtual void AbstractTaskContainer::write ( tnstream stream) const
pure virtual

Implemented in TaskContainer, and TaskHibernatingContainer.

Referenced by GameMap::write().

void AbstractTaskContainer::writeStorage ( tnstream stream) const
protected

Member Data Documentation

int AbstractTaskContainer::lastPlayer
protected

Definition at line 39 of file abstracttaskcontainer.h.

Referenced by readStorage(), and writeStorage().

MemoryStreamStorage* AbstractTaskContainer::newTasks
protected

Definition at line 34 of file abstracttaskcontainer.h.

Referenced by readStorage(), writeStorage(), and ~AbstractTaskContainer().

MemoryStreamStorage* AbstractTaskContainer::playerTasks[GameMap::maxTotalPlayers]
protected
const int AbstractTaskContainer::taskMagic = 0xda5cda5c
staticprotected

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