#include <CUndoable.h>
Public Member Functions | |
| MoveInfo (MapObject *pObjToMove) | |
| ~MoveInfo () | |
| void | DoMove (CWorldBuilderDoc *pDoc) |
| Move the object. | |
| void | UndoMove (CWorldBuilderDoc *pDoc) |
| void | SetOffset (CWorldBuilderDoc *pDoc, Real x, Real y) |
| Sets the offset for all the objects in the move list, and moves them there. | |
| void | SetZOffset (CWorldBuilderDoc *pDoc, Real z) |
| void | RotateTo (CWorldBuilderDoc *pDoc, Real angle) |
| Set the angle for all objects in the move list. | |
| void | SetThingTemplate (CWorldBuilderDoc *pDoc, const ThingTemplate *thing) |
| void | SetName (CWorldBuilderDoc *pDoc, AsciiString name) |
Public Attributes | |
| MapObject * | m_objectToModify |
| MoveInfo * | m_next |
| Real | m_newAngle |
| Real | m_oldAngle |
| Coord3D | m_newLocation |
| Coord3D | m_oldLocation |
| const ThingTemplate * | m_oldThing |
| const ThingTemplate * | m_newThing |
| AsciiString | m_oldName |
| AsciiString | m_newName |
An undoable that actually undoes something. Modifies an object's location and angle.
Definition at line 116 of file CUndoable.h.
| MoveInfo::MoveInfo | ( | MapObject * | pObjToMove | ) |
Definition at line 339 of file CUndoable.cpp.
| MoveInfo::~MoveInfo | ( | void | ) |
Definition at line 326 of file CUndoable.cpp.
| void MoveInfo::DoMove | ( | CWorldBuilderDoc * | pDoc | ) |
Move the object.
Definition at line 399 of file CUndoable.cpp.
| void MoveInfo::RotateTo | ( | CWorldBuilderDoc * | pDoc, |
| Real | angle ) |
Set the angle for all objects in the move list.
Definition at line 390 of file CUndoable.cpp.
| void MoveInfo::SetName | ( | CWorldBuilderDoc * | pDoc, |
| AsciiString | name ) |
Definition at line 381 of file CUndoable.cpp.
| void MoveInfo::SetOffset | ( | CWorldBuilderDoc * | pDoc, |
| Real | x, | ||
| Real | y ) |
Sets the offset for all the objects in the move list, and moves them there.
Definition at line 354 of file CUndoable.cpp.
| void MoveInfo::SetThingTemplate | ( | CWorldBuilderDoc * | pDoc, |
| const ThingTemplate * | thing ) |
Definition at line 375 of file CUndoable.cpp.
| void MoveInfo::SetZOffset | ( | CWorldBuilderDoc * | pDoc, |
| Real | z ) |
Definition at line 365 of file CUndoable.cpp.
| void MoveInfo::UndoMove | ( | CWorldBuilderDoc * | pDoc | ) |
Definition at line 414 of file CUndoable.cpp.
| Real MoveInfo::m_newAngle |
Definition at line 133 of file CUndoable.h.
| Coord3D MoveInfo::m_newLocation |
Definition at line 135 of file CUndoable.h.
| AsciiString MoveInfo::m_newName |
Definition at line 140 of file CUndoable.h.
| const ThingTemplate* MoveInfo::m_newThing |
Definition at line 138 of file CUndoable.h.
| MoveInfo* MoveInfo::m_next |
Definition at line 132 of file CUndoable.h.
| MapObject* MoveInfo::m_objectToModify |
Definition at line 131 of file CUndoable.h.
| Real MoveInfo::m_oldAngle |
Definition at line 134 of file CUndoable.h.
| Coord3D MoveInfo::m_oldLocation |
Definition at line 136 of file CUndoable.h.
| AsciiString MoveInfo::m_oldName |
Definition at line 139 of file CUndoable.h.
| const ThingTemplate* MoveInfo::m_oldThing |
Definition at line 137 of file CUndoable.h.