#include <changediplomaticstate.h>
Inheritance diagram for ChangeDiplomaticState:

Public Member Functions | ||||
| ChangeDiplomaticState (Player &fromplayer, Player &towardsPlayer, int queue, DiplomaticStates newState) | ||||
| ||||
| ASCString | getCommandString () const | |||
Protected Member Functions | ||||
| GameActionID | getID () const | |||
| ASCString | getDescription () const | |||
| ActionResult | runAction (const Context &context) | |||
| void | readData (tnstream &stream) | |||
| void | writeData (tnstream &stream) const | |||
| ActionResult | undoAction (const Context &context) | |||
Friends | ||||
| template<class Child> | ||||
| GameAction * | GameActionCreator (GameMap *map) | |||
Definition at line 30 of file changediplomaticstate.h.
| ChangeDiplomaticState::ChangeDiplomaticState | ( | Player & | fromplayer, | |
| Player & | towardsPlayer, | |||
| int | queue, | |||
| DiplomaticStates | newState | |||
| ) |
| queue | : 0 = no queue, -1 = remove entry from queue , +1 = add entry tro queue |
Definition at line 29 of file changediplomaticstate.cpp.
References Player::getPosition().
| GameActionID ChangeDiplomaticState::getID | ( | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 122 of file changediplomaticstate.cpp.
References ActionRegistry::ChangeDiplomaticState.
| ASCString ChangeDiplomaticState::getDescription | ( | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 127 of file changediplomaticstate.cpp.
References diplomaticStateNames, and ASCString::toString().
| ActionResult ChangeDiplomaticState::runAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 60 of file changediplomaticstate.cpp.
References Player::diplomacy, GameAction::getMap(), GameMap::getPlayer(), DiplomaticStateVector::getState(), DiplomaticStateVector::queuedStateChanges, and DiplomaticStateVector::setState().
| void ChangeDiplomaticState::readData | ( | tnstream & | stream | ) | [protected, virtual] |
Implements GameAction.
Definition at line 39 of file changediplomaticstate.cpp.
References tnstream::readInt().
| void ChangeDiplomaticState::writeData | ( | tnstream & | stream | ) | const [protected, virtual] |
Implements GameAction.
Definition at line 50 of file changediplomaticstate.cpp.
References tnstream::writeInt().
| ActionResult ChangeDiplomaticState::undoAction | ( | const Context & | context | ) | [protected, virtual] |
Implements GameAction.
Definition at line 90 of file changediplomaticstate.cpp.
References Player::diplomacy, diplomaticStateNum, GameAction::getMap(), GameMap::getPlayer(), DiplomaticStateVector::queuedStateChanges, and DiplomaticStateVector::setState().
| ASCString ChangeDiplomaticState::getCommandString | ( | ) | const |
| GameAction* GameActionCreator | ( | GameMap * | map | ) | [friend] |
1.5.1