25 #include <boost/bind.hpp> 51 "Usage: listareas\nList all areas");
53 "Usage: gotoarea <area>\nMove to a specific area");
71 std::vector<Common::UString> areaIDs;
73 if (areas.
getInt(i,
"Name") > 0) {
88 for (std::set<int32>::const_iterator a =
_areas.begin(); a !=
_areas.end(); ++a)
106 std::set<int32>::const_iterator area =
_areas.find(areaID);
107 if (area ==
_areas.end()) {
108 printf(
"No such area %d", areaID);
Handling BioWare's GDAs (2DAs, two-dimensional array, within V4.0 GFFs).
int32 getInt(size_t row, uint32 columnHash, int32 def=0) const
#define TalkMan
Shortcut for accessing the talk manager.
Console(SonicEngine &engine)
void cmdGotoArea(const CommandLine &cl)
std::set< int32 > _areas
All known areas.
The context handling the gameplay in Sonic Chronicles: The Dark Brotherhood.
Engine class handling Sonic Chronicles: The Dark Brotherhood.
void cmdListAreas(const CommandLine &cl)
Utility templates and functions for working with strings and streams.
Handling version V4.0/V4.1 of BioWare's GFFs (generic file format).
Sonic Chronicles: The Dark Brotherhood (debug) console.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Basic Aurora graphics types.
Game & getGame()
Return the context running the actual game.
const char * kSystemFontMono
Identifier used for the monospaced system font.
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
size_t getRowCount() const
Return the number of rows in the array.
The context needed to run a Sonic Chronicles: The Dark Brotherhood module.
void movePC(int32 area)
Move the player character to this area.
The global talk manager for Aurora strings.
void printf(const char *s,...) GCC_PRINTF(2
virtual void updateCaches()
void printCommandHelp(const Common::UString &cmd)
void setArguments(const Common::UString &cmd, const std::vector< Common::UString > &args)
Module & getModule()
Return the module context.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
bool registerCommand(const Common::UString &cmd, const CommandCallback &callback, const Common::UString &help)
Class to hold the GFF'd two-dimensional array of a GDA file.