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 
29 namespace Ultima {
30 namespace Ultima4 {
31 
38 private:
42  void talkRunConversation(Conversation &conv, Person *talker, bool showPrompt);
43 
47  void gameLordBritishCheckLevels();
48 protected:
52  virtual bool isDebuggerActive() const = 0;
53 
58  virtual void print(const char *fmt, ...) = 0;
59 
64  virtual void printN(const char *fmt, ...) = 0;
65 
69  virtual void prompt() = 0;
70 
74  bool isCombat() const;
75 
79  int getCombatFocus() const;
80 public:
81  virtual ~DebuggerActions() {}
82 
88  void summonCreature(const Common::String &name);
89 
93  bool destroyAt(const Coords &coords);
94 
98  Direction directionFromName(const Common::String &dirStr);
99 
103  bool getChestTrapHandler(int player);
104 
110  bool jimmyAt(const Coords &coords);
111 
116  bool mixReagentsForSpellU4(int spell);
117 
121  bool mixReagentsForSpellU5(int spell);
122 
123  bool gameSpellMixHowMany(int spell, int num, Ingredients *ingredients);
124 
129  bool openAt(const Coords &coords);
130 
131  void gameCastSpell(uint spell, int caster, int param);
132 
133 
138  bool talkAt(const Coords &coords);
139 };
140 
141 } // End of namespace Ultima4
142 } // End of namespace Ultima
143 
144 #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:37
Definition: conversation.h:265
bool jimmyAt(const Coords &coords)
virtual bool isDebuggerActive() const =0