#include <containeraction.h>
Inheritance diagram for ContainerAction:

Protected Member Functions | |
| void | setID (int id) |
| should usually not be called, the ID should only be set through the constructor | |
| ContainerBase * | getContainer (bool dontThrow=false) |
| const ContainerBase * | getContainer (bool dontThrow=false) const |
| void | readData (tnstream &stream) |
| void | writeData (tnstream &stream) const |
| ContainerAction (ContainerBase *container) | |
| ContainerAction (GameMap *map) | |
Definition at line 30 of file containeraction.h.
| ContainerAction::ContainerAction | ( | ContainerBase * | container | ) | [protected] |
| ContainerAction::ContainerAction | ( | GameMap * | map | ) | [protected] |
Definition at line 33 of file containeraction.cpp.
| 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().
1.5.1