22 #ifndef ULTIMA_SHARED_MAPS_MAP_WIDGET_H 23 #define ULTIMA_SHARED_MAPS_MAP_WIDGET_H 25 #include "common/events.h" 26 #include "common/ptr.h" 27 #include "common/serializer.h" 28 #include "common/str.h" 29 #include "ultima/shared/core/message_target.h" 30 #include "ultima/shared/core/rect.h" 41 DIR_LEFT = 1, DIR_RIGHT = 2, DIR_UP = 3, DIR_DOWN = 4,
42 DIR_WEST = 1, DIR_EAST = 2, DIR_NORTH = 3, DIR_SOUTH = 4
71 MapWidget(
Game *game,
MapBase *map,
const Point &pt, Direction dir = DIR_NONE) : _game(game), _map(map), _position(pt), _direction(dir) {}
73 _game(game), _map(map), _name(name), _position(pt), _direction(dir) {}
115 enum CanMove { UNSET = 0, YES = 1, NO = 2 };
128 virtual void moveTo(
const Point &destPos, Direction dir = DIR_NONE);
Definition: message_target.h:97
Definition: serializer.h:79
Definition: detection.h:27
Definition: map_base.h:47