6 #include "../common/Script.h"
7 #include "../geometry/Vector.h"
14 static const int TYPE_ID = 604;
21 TYPE_NORTH = Entity::ORIENTATION_NORTH,
22 TYPE_EAST = Entity::ORIENTATION_EAST,
23 TYPE_SOUTH = Entity::ORIENTATION_SOUTH,
24 TYPE_WEST = Entity::ORIENTATION_WEST,
29 const geometry::Vector<int> &TilePosition() const { return tilePosition; }
30 Type GetType() const { return Type(type); }
31 bool HasScript() const { return script; }
32 common::Script &GetScript() { return *script; }
33 const common::Script &GetScript() const { return *script; }
35 static void CreateTypeDescription();
36 static void Construct(void *);
40 void SetTilePosition(const geometry::Vector<int> &p) { tilePosition = p; }
41 void SetType(Type t) { type = t; }
42 void SetScript(common::Script *s) { script = s; }
45 common::Script *script;
46 geometry::Vector<int> tilePosition;
53 #endif /* MAP_TRIGGER_H_ */