00001 #ifndef __VECTRACER_SELECTABLEOBJECT_H__ 00002 #define __VECTRACER_SELECTABLEOBJECT_H__ 00003 00004 /* 00005 ----------------------------------------------------------------------------- 00006 Filename: SelectableObject.h 00007 Description: Inherited from GameObject; adds the ability to 'select' the object. 00008 ----------------------------------------------------------------------------- 00009 */ 00010 00011 #include "Common.h" 00012 #include "GameObject.h" 00013 00016 class SelectableObject : public GameObject 00017 { 00018 public: 00019 SelectableObject(); 00020 ~SelectableObject() {} 00021 00023 virtual void setSelected(const bool _val); 00024 00025 virtual void tryResetPosition(); 00026 00028 void setAny(); 00029 00030 protected: 00031 00032 bool m_selected; 00033 00034 static int s_nextID; 00035 }; 00036 00037 #endif