ScummVM API documentation
md_actor.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 NUVIE_ACTORS_MD_ACTOR_H
23 #define NUVIE_ACTORS_MD_ACTOR_H
24 
25 #include "ultima/nuvie/actors/wou_actor.h"
26 
27 namespace Ultima {
28 namespace Nuvie {
29 
30 class MDActor: public WOUActor {
31 public:
32 
33  MDActor(Map *m, ObjManager *om, GameClock *c);
34  ~MDActor() override;
35 
36  bool init(uint8 unused = 0) override;
37  bool will_not_talk() const override;
38  uint8 get_maxhp() const override {
39  return (((level * 24 + strength * 2) < 255) ? (level * 24 + strength * 2) : 255);
40  }
41  uint8 get_hp_text_color() const override;
42  uint8 get_str_text_color() const override;
43  uint8 get_dex_text_color() const override;
44  bool is_immobile() const override;
45 
46  bool check_move(uint16 new_x, uint16 new_y, uint8 new_z, ActorMoveFlags flags = 0) override;
47  uint16 get_downward_facing_tile_num() const override;
48  void set_direction(NuvieDir d) override;
49  bool is_passable() const override;
50 
51 };
52 
53 } // End of namespace Nuvie
54 } // End of namespace Ultima
55 
56 #endif
Definition: game_clock.h:49
Definition: map.h:147
Definition: detection.h:27
Definition: wou_actor.h:30
Definition: md_actor.h:30
Definition: obj_manager.h:75