9 #include "../math/Vector.h"
16 static const int TYPE_ID = 604;
23 TYPE_NORTH = Entity::ORIENTATION_NORTH,
24 TYPE_EAST = Entity::ORIENTATION_EAST,
25 TYPE_SOUTH = Entity::ORIENTATION_SOUTH,
26 TYPE_WEST = Entity::ORIENTATION_WEST,
31 const math::Vector<int> &TilePosition() const { return tilePosition; }
32 Type GetType() const { return Type(type); }
33 bool HasScript() const { return script; }
34 common::Script &GetScript() { return *script; }
35 const common::Script &GetScript() const { return *script; }
37 static void CreateTypeDescription();
38 static void Construct(void *);
42 void SetTilePosition(const math::Vector<int> &p) { tilePosition = p; }
43 void SetType(Type t) { type = t; }
44 void SetScript(common::Script *s) { script = s; }
47 common::Script *script;
48 math::Vector<int> tilePosition;