ASR::MovableObject Class Reference

A MovableObject is a wrapper around some 'entity' that will be visible and placeable in the game. More...

#include <MovableObject.h>

List of all members.

Public Member Functions

 MovableObject (SceneNode *parentNode)
virtual ~MovableObject ()

Protected Attributes

SceneNode * mBaseNode


Detailed Description

A MovableObject is a wrapper around some 'entity' that will be visible and placeable in the game.

A MovableObject can be used for a variety of things as long as they contain both a physical appearance as well as a position in the world. The MovableObject is responsible for positioning itself to stay on top of whatever ground is underneath it so only positions along the x/z plane are allowed. The y value will be calculated automatically.

Todo:
Allow for a customized 'y-offset' parameter which will allow the object to sit above or below the terrain by a specific amount.

Definition at line 24 of file MovableObject.h.


Constructor & Destructor Documentation

ASR::MovableObject::MovableObject ( SceneNode *  parentNode  ) 

Definition at line 7 of file MovableObject.cpp.

References mBaseNode.

00008         {
00009                 mBaseNode = parentNode->createChildSceneNode ( );
00010         }

ASR::MovableObject::~MovableObject (  )  [virtual]

Definition at line 14 of file MovableObject.cpp.

References mBaseNode.

00015         {
00016                 mBaseNode->getParentSceneNode ()->removeAndDestroyChild ( mBaseNode->getName() );
00017         }


Member Data Documentation

SceneNode* ASR::MovableObject::mBaseNode [protected]

Definition at line 36 of file MovableObject.h.

Referenced by MovableObject(), and ~MovableObject().


The documentation for this class was generated from the following files:
Generated on Sun Jun 25 19:23:44 2006 for Valors End by  doxygen 1.4.7