#include <destructcontainer.h>
Inheritance diagram for DestructContainer:

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> | |
| GameAction * | GameActionCreator (GameMap *map) |
Definition at line 30 of file destructcontainer.h.
| DestructContainer::DestructContainer | ( | ContainerBase * | container, | |
| bool | suppressWreckage = false | |||
| ) |
| DestructContainer::~DestructContainer | ( | ) |
Definition at line 216 of file destructcontainer.cpp.
| ASCString DestructContainer::getDescription | ( | ) | const [virtual] |
| 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().
| GameAction* GameActionCreator | ( | GameMap * | map | ) | [friend] |
1.5.1