22 #ifndef ULTIMA_SHARED_WIDGETS_CREATURE_H 23 #define ULTIMA_SHARED_WIDGETS_CREATURE_H 25 #include "ultima/shared/maps/map_widget.h" 26 #include "ultima/shared/maps/map.h" 27 #include "common/serializer.h" 69 _hitPoints(hitPoints), _isAttacking(
false) {}
86 virtual void update(
bool isPreUpdate);
91 bool isDead()
const {
return _hitPoints <= 0; }
void synchronize(Common::Serializer &s)
virtual uint attackDistance() const
Definition: creature.h:52
Definition: serializer.h:79
Creature(Game *game, MapBase *)
Definition: creature.h:67
Definition: detection.h:27
virtual void attackParty()
Definition: creature.h:62
Definition: creature.h:40
bool isDead() const
Definition: creature.h:91
Definition: map_base.h:47
virtual ~Creature()
Definition: creature.h:74
virtual void update(bool isPreUpdate)
virtual void movement()
Definition: creature.h:57
virtual bool subtractHitPoints(uint amount)