Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MoveInfo Class Reference

ModifyObjectUndoable. More...

#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

MapObjectm_objectToModify
 
MoveInfom_next
 
Real m_newAngle
 
Real m_oldAngle
 
Coord3D m_newLocation
 
Coord3D m_oldLocation
 
const ThingTemplatem_oldThing
 
const ThingTemplatem_newThing
 
AsciiString m_oldName
 
AsciiString m_newName
 

Detailed Description

ModifyObjectUndoable.

An undoable that actually undoes something. Modifies an object's location and angle.

Definition at line 116 of file CUndoable.h.

Constructor & Destructor Documentation

◆ MoveInfo()

MoveInfo::MoveInfo ( MapObject * pObjToMove)

Definition at line 339 of file CUndoable.cpp.

◆ ~MoveInfo()

MoveInfo::~MoveInfo ( void )

Definition at line 326 of file CUndoable.cpp.

Member Function Documentation

◆ DoMove()

void MoveInfo::DoMove ( CWorldBuilderDoc * pDoc)

Move the object.

Definition at line 399 of file CUndoable.cpp.

◆ RotateTo()

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.

◆ SetName()

void MoveInfo::SetName ( CWorldBuilderDoc * pDoc,
AsciiString name )

Definition at line 381 of file CUndoable.cpp.

◆ SetOffset()

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.

◆ SetThingTemplate()

void MoveInfo::SetThingTemplate ( CWorldBuilderDoc * pDoc,
const ThingTemplate * thing )

Definition at line 375 of file CUndoable.cpp.

◆ SetZOffset()

void MoveInfo::SetZOffset ( CWorldBuilderDoc * pDoc,
Real z )

Definition at line 365 of file CUndoable.cpp.

◆ UndoMove()

void MoveInfo::UndoMove ( CWorldBuilderDoc * pDoc)

Definition at line 414 of file CUndoable.cpp.

Member Data Documentation

◆ m_newAngle

Real MoveInfo::m_newAngle

Definition at line 133 of file CUndoable.h.

◆ m_newLocation

Coord3D MoveInfo::m_newLocation

Definition at line 135 of file CUndoable.h.

◆ m_newName

AsciiString MoveInfo::m_newName

Definition at line 140 of file CUndoable.h.

◆ m_newThing

const ThingTemplate* MoveInfo::m_newThing

Definition at line 138 of file CUndoable.h.

◆ m_next

MoveInfo* MoveInfo::m_next

Definition at line 132 of file CUndoable.h.

◆ m_objectToModify

MapObject* MoveInfo::m_objectToModify

Definition at line 131 of file CUndoable.h.

◆ m_oldAngle

Real MoveInfo::m_oldAngle

Definition at line 134 of file CUndoable.h.

◆ m_oldLocation

Coord3D MoveInfo::m_oldLocation

Definition at line 136 of file CUndoable.h.

◆ m_oldName

AsciiString MoveInfo::m_oldName

Definition at line 139 of file CUndoable.h.

◆ m_oldThing

const ThingTemplate* MoveInfo::m_oldThing

Definition at line 137 of file CUndoable.h.


The documentation for this class was generated from the following files: