4 * Created on: Oct 3, 2012
13 #include "../common/Script.h"
14 #include "../geometry/Vector.h"
25 TYPE_NORTH = Entity::ORIENTATION_NORTH,
26 TYPE_EAST = Entity::ORIENTATION_EAST,
27 TYPE_SOUTH = Entity::ORIENTATION_SOUTH,
28 TYPE_WEST = Entity::ORIENTATION_WEST,
33 const geometry::Vector<int> &TilePosition() const { return tilePosition; }
34 Type GetType() const { return Type(type); }
35 bool HasScript() const { return script; }
36 common::Script &GetScript() { return *script; }
37 const common::Script &GetScript() const { return *script; }
39 static void CreateTypeDescription();
40 static void Construct(void *);
44 void SetTilePosition(const geometry::Vector<int> &p) { tilePosition = p; }
45 void SetType(Type t) { type = t; }
46 void SetScript(common::Script *s) { script = s; }
49 common::Script *script;
50 geometry::Vector<int> tilePosition;
57 #endif /* MAP_TRIGGER_H_ */