ContainerAction Class Reference

#include <containeraction.h>

Inheritance diagram for ContainerAction:

Inheritance graph
[legend]
List of all members.

Protected Member Functions

void setID (int id)
 should usually not be called, the ID should only be set through the constructor
ContainerBasegetContainer (bool dontThrow=false)
const ContainerBasegetContainer (bool dontThrow=false) const
void readData (tnstream &stream)
void writeData (tnstream &stream) const
 ContainerAction (ContainerBase *container)
 ContainerAction (GameMap *map)

Detailed Description

Definition at line 30 of file containeraction.h.


Constructor & Destructor Documentation

ContainerAction::ContainerAction ( ContainerBase container  )  [protected]

Definition at line 27 of file containeraction.cpp.

References ContainerBase::getIdentification().

ContainerAction::ContainerAction ( GameMap map  )  [protected]

Definition at line 33 of file containeraction.cpp.


Member Function Documentation

void ContainerAction::setID ( int  id  )  [protected]

should usually not be called, the ID should only be set through the constructor

Definition at line 75 of file containeraction.cpp.

Referenced by ConsumeAmmo::readData().

ContainerBase * ContainerAction::getContainer ( bool  dontThrow = false  )  [protected]

Definition at line 41 of file containeraction.cpp.

References GameMap::getContainer(), GameAction::getMap(), and ASCString::toString().

Referenced by ViewRegistration::getDescription(), ConvertContainer::getDescription(), ConsumeResource::getDescription(), ConsumeAmmo::getDescription(), ChangeContainerProperty::getDescription(), InflictDamage::postCheck(), ConvertContainer::postCheck(), ConsumeAmmo::postCheck(), ChangeContainerProperty::postCheck(), ConvertContainer::preCheck(), ChangeContainerProperty::preCheck(), ViewRegistration::runAction(), InflictDamage::runAction(), DestructContainer::runAction(), ConvertContainer::runAction(), ConsumeResource::runAction(), ConsumeAmmo::runAction(), ViewRegistration::undoAction(), InflictDamage::undoAction(), ConvertContainer::undoAction(), ConsumeResource::undoAction(), and ConsumeAmmo::undoAction().

const ContainerBase * ContainerAction::getContainer ( bool  dontThrow = false  )  const [protected]

Definition at line 50 of file containeraction.cpp.

References GameMap::getContainer(), GameAction::getMap(), and ASCString::toString().

void ContainerAction::readData ( tnstream stream  )  [protected, virtual]

Implements GameAction.

Reimplemented in ChangeContainerProperty, ConsumeAmmo, ConsumeResource, ConsumeResource, ConvertContainer, DestructContainer, InflictDamage, and ViewRegistration.

Definition at line 59 of file containeraction.cpp.

References tnstream::readInt().

Referenced by ViewRegistration::readData(), InflictDamage::readData(), DestructContainer::readData(), ConvertContainer::readData(), ConsumeResource::readData(), ConsumeAmmo::readData(), and ChangeContainerProperty::readData().

void ContainerAction::writeData ( tnstream stream  )  const [protected, virtual]

Implements GameAction.

Reimplemented in ChangeContainerProperty, ConsumeAmmo, ConsumeResource, ConsumeResource, ConvertContainer, DestructContainer, InflictDamage, and ViewRegistration.

Definition at line 69 of file containeraction.cpp.

References tnstream::writeInt().

Referenced by ViewRegistration::writeData(), InflictDamage::writeData(), DestructContainer::writeData(), ConvertContainer::writeData(), ConsumeResource::writeData(), ConsumeAmmo::writeData(), and ChangeContainerProperty::writeData().


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