27 #include <boost/bind.hpp> 47 "Usage: listareas\nList all areas in the current campaign");
49 "Usage: loadarea <name>\nLoad and show a specific area in the current campaign");
51 "Usage: listcampaigns\nList all playable campaigns");
53 "Usage: loadcampaign <name>\nLoad and run a specific campaign");
81 std::vector<Common::UString> campaignTags;
84 for (Campaigns::PlayableCampaigns::const_iterator c = campaigns.begin(); c != campaigns.end(); ++c)
85 campaignTags.push_back((*c)->getUID());
96 const std::vector<Common::UString> &areas = campaign->
getAreas();
98 for (std::vector<Common::UString>::const_iterator a = areas.begin(); a != areas.end(); ++a) {
115 const std::vector<Common::UString> &areas = campaign->
getAreas();
117 for (std::vector<Common::UString>::const_iterator a = areas.begin(); a != areas.end(); ++a) {
118 if (a->equalsIgnoreCase(cl.
args)) {
133 for (Campaigns::PlayableCampaigns::const_iterator c = campaigns.begin(); c != campaigns.end(); ++c)
134 printf(
"%s (\"%s\")", (*c)->getUID().c_str(), (*c)->getName().getString().c_str());
146 for (Campaigns::PlayableCampaigns::const_iterator c = campaigns.begin(); c != campaigns.end(); ++c) {
147 if ((*c)->getUID().equalsIgnoreCase(cl.
args)) {
149 campaignsCtx.
load(**c);
const Aurora::LocString & getName() const
A class holding an UTF-8 string.
Engine class handling Dragon Age: Origins.
The context holding a Dragon Age: Origins campaign.
Campaigns & getCampaigns()
Return the campaigns context.
Dragon Age: Origins (debug) console.
const PlayableCampaigns & getCampaigns() const
Return all playable campaigns.
const std::vector< Common::UString > & getAreas() const
Console(DragonAgeEngine &engine)
void cmdLoadCampaign(const CommandLine &cl)
The context holding a Dragon Age: Origins area.
const char * c_str() const
Return the (utf8 encoded) string data.
The context handling the gameplay in Dragon Age: Origins.
void load(const Campaign &campaign)
Load a campaign.
Basic Aurora graphics types.
void cmdListCampaigns(const CommandLine &cl)
const char * kSystemFontMono
Identifier used for the monospaced system font.
bool empty() const
Is the string empty?
void cmdListAreas(const CommandLine &cl)
const Common::UString & getAreaRIM(const Common::UString &area) const
Return the RIM file containing this area.
DragonAgeEngine * _engine
Campaign * getCurrentCampaign() const
Return the currently running campaign.
void movePC(const Common::UString &area)
Move the player character to this area.
void printf(const char *s,...) GCC_PRINTF(2
virtual void updateCaches()
void printCommandHelp(const Common::UString &cmd)
The context managing and running the Dragon Age: Origins campaigns.
void setArguments(const Common::UString &cmd, const std::vector< Common::UString > &args)
void cmdLoadArea(const CommandLine &cl)
bool registerCommand(const Common::UString &cmd, const CommandCallback &callback, const Common::UString &help)
Game & getGame()
Return the context running the actual game.