diff options
Diffstat (limited to 'Source/Game/component.h')
-rw-r--r-- | Source/Game/component.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Game/component.h b/Source/Game/component.h index aba69a90..8a24e4b5 100644 --- a/Source/Game/component.h +++ b/Source/Game/component.h @@ -33,13 +33,13 @@ class TiXmlElement; namespace Phoenix { class Component { -public: + public: enum ComponentType { COLOR_TINT }; - ComponentType type() {return type_;} - virtual void SetFromDescription(const EntityDescription& desc)=0; - virtual void SaveToXML(TiXmlElement* el)=0; + ComponentType type() { return type_; } + virtual void SetFromDescription(const EntityDescription& desc) = 0; + virtual void SaveToXML(TiXmlElement* el) = 0; virtual void ReceiveObjectMessage(OBJECT_MSG::Type msg_type, ...) { va_list args; va_start(args, msg_type); @@ -48,8 +48,9 @@ public: } virtual void ReceiveObjectMessageVAList(OBJECT_MSG::Type msg_type, va_list args) = 0; virtual ~Component() {} -private: + + private: ComponentType type_; }; -} +} // namespace Phoenix |