DestructContainer Class Reference

#include <destructcontainer.h>

Inheritance diagram for DestructContainer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DestructContainer (ContainerBase *container, bool suppressWreckage=false)
ASCString getDescription () const
 ~DestructContainer ()

Protected Member Functions

virtual GameActionID getID () const
virtual ActionResult runAction (const Context &context)
virtual ActionResult undoAction (const Context &context)
virtual void readData (tnstream &stream)
virtual void writeData (tnstream &stream) const

Friends

template<class Child>
GameActionGameActionCreator (GameMap *map)

Detailed Description

Definition at line 30 of file destructcontainer.h.


Constructor & Destructor Documentation

DestructContainer::DestructContainer ( ContainerBase container,
bool  suppressWreckage = false 
)

Definition at line 30 of file destructcontainer.cpp.

References ContainerBase::isBuilding().

DestructContainer::~DestructContainer (  ) 

Definition at line 216 of file destructcontainer.cpp.


Member Function Documentation

ASCString DestructContainer::getDescription (  )  const [virtual]

Implements GameAction.

Definition at line 38 of file destructcontainer.cpp.

GameActionID DestructContainer::getID (  )  const [protected, virtual]

Implements GameAction.

Definition at line 101 of file destructcontainer.cpp.

References ActionRegistry::DestructContainer.

ActionResult DestructContainer::runAction ( const Context context  )  [protected, virtual]

Implements GameAction.

Definition at line 106 of file destructcontainer.cpp.

References ContainerBase::baseType, GameMap::Destruction, BuildingType::destructionObjects, Vehicle::direction, evaluateviewcalculation(), GameAction::execute(), BuildingType::fieldExists(), ContainerBase::getCargo(), ContainerBase::getCarrier(), ContainerAction::getContainer(), Building::getField(), GameMap::getField(), Building::getFieldCoordinates(), ContainerBase::getIdentification(), GameAction::getMap(), GameMap::getobjecttype_byid(), ContainerBase::getPosition(), Vehicle::getPosition(), Building::isViewing(), Vehicle::isViewing(), Building::removeview(), Vehicle::removeview(), MapField::secondvehicle, ActionRegistry::SpawnObject, GameMap::state, Building::typ, Vehicle::typ, Building::unchainbuildingfromfield(), MapField::vehicle, ContainerBaseType::view, VehicleType::wreckageObject, ContainerBase::write(), tnstream::writing, BuildingType::xdimension, and BuildingType::ydimension.

ActionResult DestructContainer::undoAction ( const Context context  )  [protected, virtual]

Implements GameAction.

Definition at line 185 of file destructcontainer.cpp.

References ContainerBase::addToCargo(), Vehicle::addview(), Building::addview(), Building::chainbuildingtofield(), GameMap::getContainer(), Building::getEntry(), GameMap::getField(), ContainerBase::getMap(), GameAction::getMap(), ContainerBase::getOwner(), GameMap::getPlayerCount(), Vehicle::getPosition(), Vehicle::newFromStream(), Building::newFromStream(), and tnstream::reading.

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

Reimplemented from ContainerAction.

Definition at line 46 of file destructcontainer.cpp.

References destructContainerStreamVersion, ContainerAction::readData(), MemoryStreamStorage::readfromstream(), and tnstream::readInt().

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

Reimplemented from ContainerAction.

Definition at line 81 of file destructcontainer.cpp.

References destructContainerStreamVersion, ContainerAction::writeData(), tnstream::writeInt(), and MemoryStreamStorage::writetostream().


Friends And Related Function Documentation

template<class Child>
GameAction* GameActionCreator ( GameMap map  )  [friend]

Definition at line 114 of file action.h.


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