4 * Created on: Oct 3, 2012
13 #include "../common/Script.h"
14 #include "../geometry/Vector.h"
21 static const int TYPE_ID = 604;
28 TYPE_NORTH = Entity::ORIENTATION_NORTH,
29 TYPE_EAST = Entity::ORIENTATION_EAST,
30 TYPE_SOUTH = Entity::ORIENTATION_SOUTH,
31 TYPE_WEST = Entity::ORIENTATION_WEST,
36 const geometry::Vector<int> &TilePosition() const { return tilePosition; }
37 Type GetType() const { return Type(type); }
38 bool HasScript() const { return script; }
39 common::Script &GetScript() { return *script; }
40 const common::Script &GetScript() const { return *script; }
42 static void CreateTypeDescription();
43 static void Construct(void *);
47 void SetTilePosition(const geometry::Vector<int> &p) { tilePosition = p; }
48 void SetType(Type t) { type = t; }
49 void SetScript(common::Script *s) { script = s; }
52 common::Script *script;
53 geometry::Vector<int> tilePosition;
60 #endif /* MAP_TRIGGER_H_ */