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

#include <CUndoable.h>

Inherits Undoable.

Public Member Functions

 ModifyFlagsUndoable (CWorldBuilderDoc *pDoc, Int flagMask, Int flagValue)
 
 ~ModifyFlagsUndoable (void)
 
virtual void Do (void)
 Set the new values, and force an inval of the objects.
 
virtual void Undo (void)
 pure virtual.
 
virtual void Redo (void)
 Set the new values, and force an inval of the objects.
 
- Public Member Functions inherited from Undoable
 Undoable (void)
 Create a new undoable.
 
 ~Undoable (void)
 Undoable - destructor.
 
void LinkNext (Undoable *pNext)
 Link another undoable to this.
 
UndoableGetNext (void)
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Protected Attributes

CWorldBuilderDocm_pDoc
 Not ref counted. This undoable should be in a list attached to the doc anyway.
 
FlagsInfom_flagsList
 
- Protected Attributes inherited from Undoable
UndoablemNext
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Detailed Description

Definition at line 186 of file CUndoable.h.

Constructor & Destructor Documentation

◆ ModifyFlagsUndoable()

ModifyFlagsUndoable::ModifyFlagsUndoable ( CWorldBuilderDoc * pDoc,
Int flagMask,
Int flagValue )

Definition at line 661 of file CUndoable.cpp.

◆ ~ModifyFlagsUndoable()

ModifyFlagsUndoable::~ModifyFlagsUndoable ( void )

Definition at line 649 of file CUndoable.cpp.

Member Function Documentation

◆ Do()

void ModifyFlagsUndoable::Do ( void )
virtual

Set the new values, and force an inval of the objects.

Implements Undoable.

Definition at line 686 of file CUndoable.cpp.

◆ Redo()

void ModifyFlagsUndoable::Redo ( void )
virtual

Set the new values, and force an inval of the objects.

Reimplemented from Undoable.

Definition at line 698 of file CUndoable.cpp.

◆ Undo()

void ModifyFlagsUndoable::Undo ( void )
virtual

pure virtual.

Implements Undoable.

Definition at line 706 of file CUndoable.cpp.

Member Data Documentation

◆ m_flagsList

FlagsInfo* ModifyFlagsUndoable::m_flagsList
protected

Definition at line 190 of file CUndoable.h.

◆ m_pDoc

CWorldBuilderDoc* ModifyFlagsUndoable::m_pDoc
protected

Not ref counted. This undoable should be in a list attached to the doc anyway.

Definition at line 189 of file CUndoable.h.


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