X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTrigger.h;h=eb174607d00e76a04c4cd8b68201f3da1ff097c9;hb=7c43158af1abf38fa896a442cb3c6d8a5bc630e7;hp=13b85ac491a08a65b5264991bc6918fa2325f385;hpb=77915e0186f4fc0788054eb34651c726b80d981c;p=l2e.git diff --git a/src/map/Trigger.h b/src/map/Trigger.h index 13b85ac..eb17460 100644 --- a/src/map/Trigger.h +++ b/src/map/Trigger.h @@ -26,16 +26,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 +48,7 @@ public: private: common::Script *script; geometry::Vector tilePosition; - Type type; + int type; };