aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Utils/Component/GameObject.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-23 12:23:58 +0800
committerchai <chaifix@163.com>2018-10-23 12:23:58 +0800
commit40fc27154fe754181934dc7ee31375e6bdfb33fc (patch)
tree897ad98d759bc308ef66561181ba88b85f2ccd47 /src/libjin/Utils/Component/GameObject.h
parent1480c9445100075c9e1a894eb07c0ef727b509a1 (diff)
*merge from minimal
Diffstat (limited to 'src/libjin/Utils/Component/GameObject.h')
-rw-r--r--src/libjin/Utils/Component/GameObject.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/libjin/Utils/Component/GameObject.h b/src/libjin/Utils/Component/GameObject.h
deleted file mode 100644
index e4f3aa5..0000000
--- a/src/libjin/Utils/Component/GameObject.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef __JIN_TOOLS_GAMEOBJECT_H
-#define __JIN_TOOLS_GAMEOBJECT_H
-#include "../../modules.h"
-#if JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
-
-#include <vector>
-#include "Component.h"
-
-namespace jin
-{
-namespace utils
-{
-
- class GameObject
- {
- public:
-
- GameObject()
- : components()
- {
- }
-
- virtual void update(float dt)
- {
- for each (Component* component in components)
- component->update(dt);
- }
-
- virtual void draw() = 0;
-
- protected:
-
- std::vector<Component*> components;
- };
-
-} // tools
-} // jin
-
-#endif // JIN_MODULES_TOOLS && JIN_TOOLS_COMPONENT
-#endif // __JIN_TOOLS_GAMEOBJECT_H \ No newline at end of file