ScummVM API documentation
Ultima::Shared::Maps::DungeonCreature Class Referenceabstract

#include <dungeon_creature.h>

Inheritance diagram for Ultima::Shared::Maps::DungeonCreature:
Ultima::Shared::Maps::Creature Ultima::Ultima1::Widgets::DungeonMonster

Public Member Functions

 DungeonCreature (Game *game, MapBase *map)
 
 DungeonCreature (Game *game, MapBase *map, int hitPoints)
 
 ~DungeonCreature () override
 
virtual bool isBlockingView () const =0
 
virtual void draw (DungeonSurface &s, uint distance)=0
 
- Public Member Functions inherited from Ultima::Shared::Maps::Creature
 Creature (Game *game, MapBase *)
 
 Creature (Game *game, MapBase *, int hitPoints)
 
virtual ~Creature ()
 
void synchronize (Common::Serializer &s)
 
virtual void update (bool isPreUpdate)
 
bool isDead () const
 
virtual bool subtractHitPoints (uint amount)
 

Additional Inherited Members

- Protected Member Functions inherited from Ultima::Shared::Maps::Creature
virtual uint attackDistance () const
 
virtual void movement ()
 
virtual void attackParty ()
 
- Protected Attributes inherited from Ultima::Shared::Maps::Creature
int _hitPoints
 
bool _isAttacking
 

Detailed Description

Stub class for dungeon creatures

Constructor & Destructor Documentation

◆ DungeonCreature()

Ultima::Shared::Maps::DungeonCreature::DungeonCreature ( Game game,
MapBase map 
)
inline

Constructor

◆ ~DungeonCreature()

Ultima::Shared::Maps::DungeonCreature::~DungeonCreature ( )
inlineoverride

Destructor

Member Function Documentation

◆ isBlockingView()

virtual bool Ultima::Shared::Maps::DungeonCreature::isBlockingView ( ) const
pure virtual

Returns true if a monster blocks the background behind him

Implemented in Ultima::Ultima1::Widgets::DungeonMonster.

◆ draw()

virtual void Ultima::Shared::Maps::DungeonCreature::draw ( DungeonSurface s,
uint  distance 
)
pure virtual

Draw a monster

Implemented in Ultima::Ultima1::Widgets::DungeonMonster.


The documentation for this class was generated from the following file: