UGDK
src/ugdk/action/entity.h
Go to the documentation of this file.
00001 #ifndef UGDK_ACTION_ENTITY_H_
00002 #define UGDK_ACTION_ENTITY_H_
00003 
00004 #include <ugdk/action.h>
00005 
00006 namespace ugdk {
00007 
00008 namespace action {
00009 
00010 class Entity {
00011   public:
00012     virtual ~Entity() {}
00013 
00014     virtual bool to_be_removed() const { return to_be_removed_; }
00015     
00016     virtual void Update(double dt) = 0;
00017     
00018     virtual void OnSceneAdd(Scene* scene) {}
00019 
00020   protected:
00021     Entity() : to_be_removed_(false) {}
00022     bool to_be_removed_;
00023 };
00024 
00025 }  // namespace action
00026 
00027 }  // namespace ugdk
00028 
00029 #endif // UGDK_ACTION_ENTITY_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines