22 #ifndef ULTIMA_SHARED_CORE_WIDGETS_H 23 #define ULTIMA_SHARED_CORE_WIDGETS_H 25 #include "ultima/shared/core/map.h" 26 #include "ultima/shared/gfx/dungeon_surface.h" 74 _hitPoints(hitPoints), _isAttacking(
false) {}
76 StandardWidget(game, map, pt, dir), _hitPoints(hitPoints), _isAttacking(
false) {}
93 void update(
bool isPreUpdate)
override;
98 bool isDead()
const {
return _hitPoints <= 0; }
136 virtual bool isBlockingView()
const = 0;
~Creature() override
Definition: widgets.h:81
Creature(Game *game, Map::MapBase *map)
Definition: widgets.h:72
bool isDead() const
Definition: widgets.h:98
Definition: dungeon_surface.h:37
virtual uint attackDistance() const
Definition: widgets.h:57
Definition: serializer.h:79
Definition: detection.h:27
Definition: widgets.h:129
virtual void attack()
Definition: widgets.h:67
virtual void movement()
Definition: widgets.h:62