22 #ifndef changeUnitMovementH
23 #define changeUnitMovementH
44 int resultingMovement;
46 void decreaseMovement(
Vehicle* veh,
float fraction,
const Context& context );
virtual void readData(tnstream &stream)
ASCString getDescription() const
friend GameAction * GameActionCreator(GameMap *map)
virtual void writeData(tnstream &stream) const
virtual ActionResult runAction(const Context &context)
The interface for all kinds of IO stream.
The ASCString class provides an abstract way to manipulate strings.
virtual ActionResult undoAction(const Context &context)
virtual ActionResult preCheck()
preCheck is called before an action is redone and should check the preconditions for the action...
virtual ActionResult postCheck()
postCheck is called after an action has been redone and should check that the state of the map is exa...
the loaded units get their movement changed too, by the normal fraction (loaded units less than carri...
A GameAction is an modification of something on a map.
virtual GameActionID getID() const
loaded units get same change as carrier
only the unit itself gets its movement changed
The map. THE central structure of ASC, which holds everything not globally available together...