ScummVM API documentation
dungeon_player.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_ULTIMA1_WIDGETS_DUNGEON_PLAYER_H
23#define ULTIMA_ULTIMA1_WIDGETS_DUNGEON_PLAYER_H
24
25#include "ultima/shared/maps/dungeon_widget.h"
26#include "ultima/shared/maps/map_widget.h"
27#include "ultima/shared/early/game.h"
28
29namespace Ultima {
30namespace Ultima1 {
31namespace Widgets {
32
34public:
35 DECLARE_WIDGET(DungeonPlayer)
36
37
40 DungeonPlayer(Shared::Game *game, Shared::Maps::MapBase *map) : Shared::Maps::DungeonWidget(game, map) {}
41 DungeonPlayer(Shared::Game *game, Shared::Maps::MapBase *map, const Point &pt, Shared::Maps::Direction dir = Shared::Maps::DIR_NONE) : Shared::Maps::DungeonWidget(game, map, pt, dir) {}
42 DungeonPlayer(Shared::Game *game, Shared::Maps::MapBase *map, const Common::String &name, const Point &pt, Shared::Maps::Direction dir = Shared::Maps::DIR_NONE) :
43 Shared::Maps::DungeonWidget(game, map, name, pt, dir) {}
44
48 ~DungeonPlayer() override {}
49
53 void draw(Shared::DungeonSurface &s, uint distance) override {}
54
58 CanMove canMoveTo(const Point &destPos) override;
59};
60
61} // End of namespace Widgets
62} // End of namespace Ultima1
63} // End of namespace Ultima
64
65#endif
66
Definition: str.h:59
Definition: dungeon_surface.h:37
Definition: game.h:42
Definition: dungeon_widget.h:42
DungeonWidget(Game *game, Maps::MapBase *map)
Definition: dungeon_widget.h:47
Definition: map_base.h:47
Definition: dungeon_player.h:33
CanMove canMoveTo(const Point &destPos) override
~DungeonPlayer() override
Definition: dungeon_player.h:48
DungeonPlayer(Shared::Game *game, Shared::Maps::MapBase *map)
Definition: dungeon_player.h:40
void draw(Shared::DungeonSurface &s, uint distance) override
Definition: dungeon_player.h:53
Definition: dungeon_widget.h:52
Definition: rect.h:144