ScummVM API documentation
dungeon_creature.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ULTIMA_SHARED_MAPS_DUNGEON_CREATURE_H
23 #define ULTIMA_SHARED_MAPS_DUNGEON_CREATURE_H
24 
25 #include "ultima/shared/maps/creature.h"
26 
27 namespace Ultima {
28 namespace Shared {
29 
30 class Game;
31 class Map;
32 
33 namespace Maps {
34 
38 class DungeonCreature : public Creature {
39 public:
43  DungeonCreature(Game *game, MapBase *map) : Creature(game, map) {}
44  DungeonCreature(Game *game, MapBase *map, int hitPoints) : Creature(game, map, hitPoints) {}
45 
49  ~DungeonCreature() override {}
50 
54  virtual bool isBlockingView() const = 0;
55 
59  virtual void draw(DungeonSurface &s, uint distance) = 0;
60 };
61 
62 } // End of namespace Maps
63 } // End of namespace Shared
64 } // End of namespace Ultima
65 
66 #endif
virtual void draw(DungeonSurface &s, uint distance)=0
Definition: game.h:42
virtual bool isBlockingView() const =0
~DungeonCreature() override
Definition: dungeon_creature.h:49
Definition: dungeon_surface.h:37
Creature(Game *game, MapBase *)
Definition: creature.h:67
Definition: detection.h:27
Definition: creature.h:40
DungeonCreature(Game *game, MapBase *map)
Definition: dungeon_creature.h:43
Definition: map_base.h:47
Definition: dungeon_creature.h:38