ScummVM API documentation
monster_touch.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 MM1_GAME_MONSTER_TOUCH_H
23#define MM1_GAME_MONSTER_TOUCH_H
24
25#include "mm/mm1/game/spells_monsters.h"
26
27namespace MM {
28namespace MM1 {
29namespace Game {
30
31class MonsterTouch;
32typedef bool (MonsterTouch::*MonsterTouchAction)(Common::String &line);
33
35private:
36 static const MonsterTouchAction ACTIONS[25];
37
38 bool canPerform(int level) const;
39private:
40 bool action00(Common::String &line);
41 bool action01(Common::String &line);
42 bool action02(Common::String &line);
43 bool action03(Common::String &line);
44 bool action04(Common::String &line);
45 bool action05(Common::String &line);
46 bool action06(Common::String &line);
47 bool action07(Common::String &line);
48 bool action08(Common::String &line);
49 bool action09(Common::String &line);
50 bool action10(Common::String &line);
51 bool action11(Common::String &line);
52 bool action12(Common::String &line);
53 bool action13(Common::String &line);
54 bool action14(Common::String &line);
55 bool action15(Common::String &line);
56 bool action16(Common::String &line);
57 bool action17(Common::String &line);
58 bool action18(Common::String &line);
59 bool action19(Common::String &line);
60 bool action20(Common::String &line);
61 bool action21(Common::String &line);
62 bool action22(Common::String &line);
63 bool action23(Common::String &line);
64 bool action24(Common::String &line);
65
66public:
67 virtual ~MonsterTouch() {}
68
69 bool monsterTouch(uint index, Common::String &line);
70};
71
72} // namespace Game
73} // namespace MM1
74} // namespace MM
75
76#endif
Definition: str.h:59
Definition: monster_touch.h:34
Definition: spells_monsters.h:41
Definition: detection.h:27