ScummVM API documentation
debugger_actions.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 ULTIMA4_CORE_DEBUGGER_ACTIONS_H
23 #define ULTIMA4_CORE_DEBUGGER_ACTIONS_H
24 
25 #include "ultima/ultima4/core/coords.h"
26 #include "ultima/ultima4/game/spell.h"
27 #include "ultima/ultima4/core/types.h"
28 #include "ultima/shared/engine/debugger.h"
29 
30 namespace Ultima {
31 namespace Ultima4 {
32 
39 private:
43  void talkRunConversation(Conversation &conv, Person *talker, bool showPrompt);
44 
48  void gameLordBritishCheckLevels();
49 protected:
53  virtual bool isDebuggerActive() const = 0;
54 
59  virtual void print(const char *fmt, ...) = 0;
60 
65  virtual void printN(const char *fmt, ...) = 0;
66 
70  virtual void prompt() = 0;
71 
75  bool isCombat() const;
76 
80  int getCombatFocus() const;
81 public:
82  virtual ~DebuggerActions() {}
83 
89  void summonCreature(const Common::String &name);
90 
94  bool destroyAt(const Coords &coords);
95 
99  Direction directionFromName(const Common::String &dirStr);
100 
104  bool getChestTrapHandler(int player);
105 
111  bool jimmyAt(const Coords &coords);
112 
117  bool mixReagentsForSpellU4(int spell);
118 
122  bool mixReagentsForSpellU5(int spell);
123 
124  bool gameSpellMixHowMany(int spell, int num, Ingredients *ingredients);
125 
130  bool openAt(const Coords &coords);
131 
132  void gameCastSpell(uint spell, int caster, int param);
133 
134 
139  bool talkAt(const Coords &coords);
140 };
141 
142 } // End of namespace Ultima4
143 } // End of namespace Ultima
144 
145 #endif
Definition: str.h:59
void summonCreature(const Common::String &name)
bool mixReagentsForSpellU4(int spell)
Definition: coords.h:31
Direction directionFromName(const Common::String &dirStr)
Definition: detection.h:27
virtual void printN(const char *fmt,...)=0
bool mixReagentsForSpellU5(int spell)
bool destroyAt(const Coords &coords)
virtual void print(const char *fmt,...)=0
bool talkAt(const Coords &coords)
bool openAt(const Coords &coords)
Definition: spell.h:60
Definition: person.h:56
bool getChestTrapHandler(int player)
Definition: debugger_actions.h:38
Definition: conversation.h:265
bool jimmyAt(const Coords &coords)
virtual bool isDebuggerActive() const =0