Jamoma API
0.6.0.a19
|
#include <Moveable.h>
Public Member Functions | |
Moveable () | |
Class constructor. | |
Moveable (double x, double y, double z) | |
Class constructor, taking arguments for x, y and z position. | |
double | xPos () const |
Get x position. | |
void | xPos (double x) |
Set x position. | |
double | yPos () const |
Get y position. | |
void | yPos (double y) |
Set y position. | |
double | zPos () const |
Get z position. | |
void | zPos (double z) |
Set z position. | |
bool | flag () const |
True if object has moved. | |
void | flag (bool changed) |
To be set if object has moved. | |
bool | checkWidth (double newWidth) |
Check if a room's new width will still contain this object. | |
bool | checkDepth (double newDepth) |
Check if a room's new depth will still contain this object. | |
bool | checkHeight (double newHeight) |
Check if a room's new height will still contain this object. | |
virtual void | printPos () const =0 |
Virtual function that must be overriden in derived classes. Prints position for this object. | |
Moveable class.
This class implements an object that can be moved in 3d space.
by Tristan Matthews and Nils Peters, 2007-2008.
Definition at line 18 of file Moveable.h.