TaskContainer Class Reference

#include <taskcontainer.h>

Inheritance diagram for TaskContainer:

Inheritance graph
[legend]
List of all members.

Public Types

typedef list< Command * > CommandContainer

Public Member Functions

void remove (Command *cmd)
 TaskContainer (GameMap *gamemap)
 ~TaskContainer ()
void read (tnstream &stream)
void write (tnstream &stream) const
virtual void foo ()

Static Public Member Functions

static void registerHooks ()

Public Attributes

CommandContainer pendingCommands

Detailed Description

Definition at line 32 of file taskcontainer.h.


Member Typedef Documentation

typedef list<Command*> TaskContainer::CommandContainer

Definition at line 43 of file taskcontainer.h.


Constructor & Destructor Documentation

TaskContainer::TaskContainer ( GameMap gamemap  ) 

Definition at line 33 of file taskcontainer.cpp.

References GameMap::sigPlayerTurnBegins, and GameMap::sigPlayerTurnHasEnded.

TaskContainer::~TaskContainer (  ) 

Definition at line 41 of file taskcontainer.cpp.

References pendingCommands.


Member Function Documentation

void TaskContainer::remove ( Command cmd  ) 

Definition at line 130 of file taskcontainer.cpp.

References pendingCommands.

void TaskContainer::read ( tnstream stream  )  [virtual]

Implements AbstractTaskContainer.

Definition at line 157 of file taskcontainer.cpp.

References magic, pendingCommands, GameAction::readFromStream(), tnstream::readInt(), AbstractTaskContainer::readStorage(), and AbstractTaskContainer::taskMagic.

void TaskContainer::write ( tnstream stream  )  const [virtual]

Implements AbstractTaskContainer.

Definition at line 147 of file taskcontainer.cpp.

References pendingCommands, AbstractTaskContainer::taskMagic, tnstream::writeInt(), and AbstractTaskContainer::writeStorage().

void TaskContainer::registerHooks (  )  [static]

Definition at line 52 of file taskcontainer.cpp.

References ActionContainer::commitCommand, and GameMap::sigMapCreation.

Referenced by gamethread(), and main().

virtual void TaskContainer::foo (  )  [inline, virtual]

Definition at line 56 of file taskcontainer.h.


Member Data Documentation

CommandContainer TaskContainer::pendingCommands

Definition at line 44 of file taskcontainer.h.

Referenced by read(), remove(), TaskFactory::restart(), runOpenTasks(), runPendingTasks(), runTasks(), TaskFactory::spawnNextItem(), write(), and ~TaskContainer().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:40 2012 for Advanced Strategic Command by  doxygen 1.5.1