X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTrigger.h;h=222f8138f98803cc9afaa4eb75f947684b144d98;hb=3a8e247d08c44419e632f575d2c6a919ae42a236;hp=47f933be42263dc529ed3a7c6d203575a4edf26f;hpb=d8d0982340fc10e5161251a4b50223fabc7b4431;p=l2e.git diff --git a/src/map/Trigger.h b/src/map/Trigger.h index 47f933b..222f813 100644 --- a/src/map/Trigger.h +++ b/src/map/Trigger.h @@ -8,6 +8,7 @@ #ifndef MAP_TRIGGER_H_ #define MAP_TRIGGER_H_ +#include "Entity.h" #include "fwd.h" #include "../geometry/Vector.h" @@ -19,15 +20,26 @@ public: Trigger(); ~Trigger() { } + enum Type { + TYPE_NORTH = Entity::ORIENTATION_NORTH, + TYPE_EAST = Entity::ORIENTATION_EAST, + TYPE_SOUTH = Entity::ORIENTATION_SOUTH, + TYPE_WEST = Entity::ORIENTATION_WEST, + TYPE_CONTACT, + }; + public: const geometry::Vector &TilePosition() const { return tilePosition; } + Type GetType() const { return type; } // temporary setters public: void SetTilePosition(const geometry::Vector &p) { tilePosition = p; } + void SetType(Type t) { type = t; } private: geometry::Vector tilePosition; + Type type; // temporary members until scripting is implemented public: