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
28namespace Ultima {
29namespace Ultima1 {
30namespace Spells {
31
32using Shared::CCharacterInputMsg;
33
37class KillMagicMIssile : public Spell {
38 DECLARE_MESSAGE_MAP;
39 bool CharacterInputMsg(CCharacterInputMsg *msg);
40public:
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
57class Kill : public KillMagicMIssile {
58public:
63
67 void dungeonCast(Maps::MapDungeon *map) override;
68};
69
74public:
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: messages.h:290
Definition: party.h:129
Definition: map_base.h:39
Definition: map_dungeon.h:48
Definition: kill_magic_missile.h:57
Kill(Ultima1Game *game, Character *c)
void dungeonCast(Maps::MapDungeon *map) override
Definition: kill_magic_missile.h:37
KillMagicMIssile(Ultima1Game *game, Character *c, SpellId spellId)
Definition: kill_magic_missile.h:46
void cast(Maps::MapBase *map) override
Definition: kill_magic_missile.h:73
void dungeonCast(Maps::MapDungeon *map) override
MagicMissile(Ultima1Game *game, Character *c)
Definition: spell.h:46
Definition: game.h:42