aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Game/je_entity.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-23 13:30:45 +0800
committerchai <chaifix@163.com>2018-10-23 13:30:45 +0800
commit04f7a8ed11f4cf93afe93d03759990a6c670b321 (patch)
tree1da73485c5000815dfd1be2fc60ab5aa725607c0 /src/libjin/Game/je_entity.h
parent50be5c9746854adcdb5b45b75955b57f18f98fe5 (diff)
*修改tag位数
Diffstat (limited to 'src/libjin/Game/je_entity.h')
-rw-r--r--src/libjin/Game/je_entity.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libjin/Game/je_entity.h b/src/libjin/Game/je_entity.h
index 4a252da..d67a71f 100644
--- a/src/libjin/Game/je_entity.h
+++ b/src/libjin/Game/je_entity.h
@@ -10,6 +10,7 @@
#include "../common/je_object.h"
#include "../common/je_types.h"
+#include "../graphics/je_sprite.h"
namespace JinEngine
{
@@ -43,15 +44,20 @@ namespace JinEngine
///
void setActive(bool isActive);
+ ///
+ ///
+ ///
+ void setOrder(uint32 order);
+
protected:
virtual void onAlive();
virtual void onUpdate(float dt);
virtual void onDraw();
- virtual void onDie();
+ virtual void onDestroy();
- uint32 layer; // layer where entity belongs
- uint32 index; // render index in layer
- uint64 tag; // tag of entity, 64 now
+ 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