xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::DragonAge::Console Class Reference

#include <console.h>

Inheritance diagram for Engines::DragonAge::Console:
Inheritance graph
[legend]
Collaboration diagram for Engines::DragonAge::Console:
Collaboration graph
[legend]

Public Member Functions

 Console (DragonAgeEngine &engine)
 
 ~Console ()
 
- Public Member Functions inherited from Engines::Console
 Console (Engine &engine, const Common::UString &font, int fontHeight=0)
 
void show ()
 
void hide ()
 
bool isVisible () const
 
float getWidth () const
 
float getHeight () const
 
size_t getLines () const
 
size_t getColumns () const
 
bool processEvent (const Events::Event &event)
 
void disableCommand (const Common::UString &cmd, const Common::UString &reason="")
 
void enableCommand (const Common::UString &cmd)
 
void clear ()
 
void print (const Common::UString &line)
 
void printf (const char *s,...) GCC_PRINTF(2
 

Private Member Functions

void updateCaches ()
 
void updateAreas ()
 
void updateCampaigns ()
 
void cmdListAreas (const CommandLine &cl)
 
void cmdLoadArea (const CommandLine &cl)
 
void cmdListCampaigns (const CommandLine &cl)
 
void cmdLoadCampaign (const CommandLine &cl)
 

Private Attributes

DragonAgeEngine_engine
 

Additional Inherited Members

- Protected Types inherited from Engines::Console
typedef boost::function< void(const CommandLine &cl)> CommandCallback
 
- Protected Member Functions inherited from Engines::Console
void printException (Common::Exception &e, const Common::UString &prefix="ERROR: ")
 
bool registerCommand (const Common::UString &cmd, const CommandCallback &callback, const Common::UString &help)
 
void printCommandHelp (const Common::UString &cmd)
 
void printList (const std::vector< Common::UString > &list, size_t maxSize=0)
 
void setArguments (const Common::UString &cmd, const std::vector< Common::UString > &args)
 
void setArguments (const Common::UString &cmd)
 
virtual void showCallback ()
 
- Static Protected Member Functions inherited from Engines::Console
static void splitArguments (Common::UString argLine, std::vector< Common::UString > &args)
 

Detailed Description

Definition at line 36 of file console.h.

Constructor & Destructor Documentation

◆ Console()

Engines::DragonAge::Console::Console ( DragonAgeEngine engine)

Definition at line 42 of file console.cpp.

References cmdListAreas(), cmdListCampaigns(), cmdLoadArea(), cmdLoadCampaign(), and Engines::Console::registerCommand().

Here is the call graph for this function:

◆ ~Console()

Engines::DragonAge::Console::~Console ( )
virtual

Reimplemented from Engines::Console.

Definition at line 56 of file console.cpp.

Member Function Documentation

◆ cmdListAreas()

void Engines::DragonAge::Console::cmdListAreas ( const CommandLine cl)
private

◆ cmdListCampaigns()

void Engines::DragonAge::Console::cmdListCampaigns ( const CommandLine cl)
private

Definition at line 128 of file console.cpp.

References _engine, Engines::DragonAge::Campaigns::getCampaigns(), Engines::DragonAge::Game::getCampaigns(), Engines::DragonAge::DragonAgeEngine::getGame(), and Engines::Console::printf().

Referenced by Console().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmdLoadArea()

void Engines::DragonAge::Console::cmdLoadArea ( const CommandLine cl)
private

◆ cmdLoadCampaign()

void Engines::DragonAge::Console::cmdLoadCampaign ( const CommandLine cl)
private

◆ updateAreas()

void Engines::DragonAge::Console::updateAreas ( )
private

◆ updateCaches()

void Engines::DragonAge::Console::updateCaches ( )
privatevirtual

Reimplemented from Engines::Console.

Definition at line 59 of file console.cpp.

References updateAreas(), Engines::Console::updateCaches(), and updateCampaigns().

Here is the call graph for this function:

◆ updateCampaigns()

void Engines::DragonAge::Console::updateCampaigns ( )
private

Definition at line 76 of file console.cpp.

References _engine, Engines::DragonAge::Campaigns::getCampaigns(), Engines::DragonAge::Game::getCampaigns(), Engines::DragonAge::DragonAgeEngine::getGame(), and Engines::Console::setArguments().

Referenced by updateCaches().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _engine

DragonAgeEngine* Engines::DragonAge::Console::_engine
private

The documentation for this class was generated from the following files: