RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
TranslateAction Class Reference

#include <customundoableactions.h>

Inheritance diagram for TranslateAction:
UndoableAction< CGameObject *, btVector3 > IUndoableAction CObject

Public Member Functions

 TranslateAction (CGameObject *game_obj, btVector3 translate_vec)
 
virtual const char * getHint () const
 
virtual void performAction ()
 
virtual IUndoableActiongetOppositeAction ()
 
- Public Member Functions inherited from UndoableAction< CGameObject *, btVector3 >
 UndoableAction (CGameObject *target, btVector3 &value)
 
void setTarget (CGameObject *target)
 
CGameObjectgetTarget () const
 
void setValue (btVector3 &value)
 
btVector3 getValue () const
 
virtual ~UndoableAction ()
 
- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Protected Attributes

btVector3 m_oldValue
 
- Protected Attributes inherited from UndoableAction< CGameObject *, btVector3 >
CGameObjectm_target
 
btVector3 m_value
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Detailed Description

TranslateAction is created when the user modifies the position of any game object in the editor.

Definition at line 42 of file customundoableactions.h.

Constructor & Destructor Documentation

TranslateAction::TranslateAction ( CGameObject game_obj,
btVector3  translate_vec 
)
inline

Definition at line 44 of file customundoableactions.h.

Member Function Documentation

virtual const char* TranslateAction::getHint ( ) const
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 49 of file customundoableactions.h.

virtual IUndoableAction* TranslateAction::getOppositeAction ( )
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 57 of file customundoableactions.h.

virtual void TranslateAction::performAction ( )
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 53 of file customundoableactions.h.

Member Data Documentation

btVector3 TranslateAction::m_oldValue
protected

Definition at line 62 of file customundoableactions.h.


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