X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTrigger.h;h=78248589ee34fa226086840dd3702ca84614327e;hb=9666839d0ca6c794d28226a007870c82ef4ddb20;hp=13b85ac491a08a65b5264991bc6918fa2325f385;hpb=2ad47aa3758fe5d04ba1764f275a0fe30706d200;p=l2e.git diff --git a/src/map/Trigger.h b/src/map/Trigger.h index 13b85ac..7824858 100644 --- a/src/map/Trigger.h +++ b/src/map/Trigger.h @@ -1,10 +1,3 @@ -/* - * Trigger.h - * - * Created on: Oct 3, 2012 - * Author: holy - */ - #ifndef MAP_TRIGGER_H_ #define MAP_TRIGGER_H_ @@ -17,6 +10,9 @@ namespace map { class Trigger { +public: + static const int TYPE_ID = 604; + public: Trigger(); ~Trigger() { } @@ -26,16 +22,19 @@ public: TYPE_EAST = Entity::ORIENTATION_EAST, TYPE_SOUTH = Entity::ORIENTATION_SOUTH, TYPE_WEST = Entity::ORIENTATION_WEST, - TYPE_CONTACT, + TYPE_CONTACT = 4, }; public: const geometry::Vector &TilePosition() const { return tilePosition; } - Type GetType() const { return type; } + Type GetType() const { return Type(type); } bool HasScript() const { return script; } common::Script &GetScript() { return *script; } const common::Script &GetScript() const { return *script; } + static void CreateTypeDescription(); + static void Construct(void *); + // temporary setters public: void SetTilePosition(const geometry::Vector &p) { tilePosition = p; } @@ -45,7 +44,7 @@ public: private: common::Script *script; geometry::Vector tilePosition; - Type type; + int type; };