From e8e12b11db220160eb63727fb03548410bf3afd2 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 25 Nov 2018 00:11:28 +0800 Subject: *misc --- src/libjin/game/je_gameobject.h | 48 +++-------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) (limited to 'src/libjin/game/je_gameobject.h') diff --git a/src/libjin/game/je_gameobject.h b/src/libjin/game/je_gameobject.h index 7c6ec2b..e434caf 100644 --- a/src/libjin/game/je_gameobject.h +++ b/src/libjin/game/je_gameobject.h @@ -9,14 +9,13 @@ #include #include "../common/je_object.h" -#include "../common/je_types.h" -#include "../graphics/je_sprite.h" +#include "../math/je_transform.h" namespace JinEngine { namespace Game { - /* + /// /// Game object base class. /// @@ -27,54 +26,13 @@ namespace JinEngine /// /// /// - virtual ~GameObject(); - - /// - /// - /// - void lifecycle(); - - /// - /// - /// - void setVisible(bool isVisible); - - /// - /// - /// - void setActive(bool isActive); - - /// - /// - /// - void setOrder(uint32 order); + virtual ~GameObject() {}; protected: - virtual void onAlive(); - virtual void onUpdate(float dt); - virtual void onDraw(); - virtual void onDestroy(); - - uint32 mLayer; // layer where entity belongs - uint32 mOrder; // render index in layer - uint32 mTag; // tag of entity, support 32 tags now - bool mIsVisible; // if the entity is visible or not - bool mIsActive; // if the entity is joined into the logic - Math::Transform mTransform; }; - /// - /// Entity list. For quickly adding and removing entities. - /// - typedef std::list EntityList; - - /// - /// Entity set. For searching and keeps entities unique and sorted. - /// - typedef std::set EntitySet; - */ } // namespace Game } // namespace JinEngine -- cgit v1.1-26-g67d0