ScummVM API documentation
kill_magic_missile.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_U1DIALOGS_KILL_MAGIC_MISSILE_H
23 #define ULTIMA_ULTIMA1_U1DIALOGS_KILL_MAGIC_MISSILE_H
24 
25 #include "ultima/ultima1/spells/spell.h"
26 #include "ultima/shared/engine/messages.h"
27 
28 namespace Ultima {
29 namespace Ultima1 {
30 namespace Spells {
31 
32 using Shared::CCharacterInputMsg;
33 
37 class KillMagicMIssile : public Spell {
38  DECLARE_MESSAGE_MAP;
39  bool CharacterInputMsg(CCharacterInputMsg *msg);
40 public:
41  CLASSDEF;
42 
46  KillMagicMIssile(Ultima1Game *game, Character *c, SpellId spellId) : Spell(game, c, spellId) {}
47 
51  void cast(Maps::MapBase *map) override;
52 };
53 
57 class Kill : public KillMagicMIssile {
58 public:
62  Kill(Ultima1Game *game, Character *c);
63 
67  void dungeonCast(Maps::MapDungeon *map) override;
68 };
69 
74 public:
79 
83  void dungeonCast(Maps::MapDungeon *map) override;
84 };
85 
86 } // End of namespace U1Dialogs
87 } // End of namespace Ultima1
88 } // End of namespace Ultima
89 
90 #endif
Definition: map_dungeon.h:48
Definition: messages.h:290
Definition: map_base.h:39
Definition: detection.h:27
Definition: party.h:129
Definition: kill_magic_missile.h:57
Definition: kill_magic_missile.h:37
Definition: game.h:42
KillMagicMIssile(Ultima1Game *game, Character *c, SpellId spellId)
Definition: kill_magic_missile.h:46
virtual void dungeonCast(Maps::MapDungeon *map)
Definition: kill_magic_missile.h:73
Definition: spell.h:46
void cast(Maps::MapBase *map) override