#include <SelectableObject.h>
Public Member Functions | |
SelectableObject () | |
~SelectableObject () | |
virtual void | setSelected (const bool _val) |
Toggle whether we're selected or not. | |
virtual void | tryResetPosition () |
void | setAny () |
We have to have a unique setAny for gameObject and selectableObject, so we can distinguish between the two! | |
Protected Attributes | |
bool | m_selected |
Static Protected Attributes | |
static int | s_nextID = 0 |
Selectable object - basically, if something inherits from this it can be clicked on, thinks the input manager.
Definition at line 16 of file SelectableObject.h.
SelectableObject::SelectableObject | ( | ) |
Definition at line 6 of file SelectableObject.cpp.
SelectableObject::~SelectableObject | ( | ) | [inline] |
Definition at line 20 of file SelectableObject.h.
void SelectableObject::setAny | ( | ) | [virtual] |
We have to have a unique setAny for gameObject and selectableObject, so we can distinguish between the two!
Reimplemented from GameObject.
Definition at line 16 of file SelectableObject.cpp.
void SelectableObject::setSelected | ( | const bool | _val | ) | [virtual] |
Toggle whether we're selected or not.
Definition at line 11 of file SelectableObject.cpp.
void SelectableObject::tryResetPosition | ( | ) | [virtual] |
Reimplemented in Craft.
Definition at line 23 of file SelectableObject.cpp.
bool SelectableObject::m_selected [protected] |
Definition at line 32 of file SelectableObject.h.
int SelectableObject::s_nextID = 0 [static, protected] |
Reimplemented from GameObject.
Reimplemented in TrackControlObject.
Definition at line 34 of file SelectableObject.h.