#include <ui.h>
Public Member Functions | |
Info methods | |
eUI | type () const |
| |
Virtual methods | |
These will be overridden by derived UIs. | |
virtual void | update ()=0 |
Update this UI for a single frame. | |
Static Public Member Functions | |
Creation methods | |
static CUi * | create_ui (eUI type) |
Factory used to creates a UI. | |
static bool | load (CGame *pGame, const std::string &filepath) |
Load animation descriptions from a file. | |
static bool | load (CGame *pGame, CXMLNode node) |
Load animation descriptions from a file. | |
static bool | load (CGame *pGame, const std::string &filename, const std::string &path) |
Load animation descriptions from a file. | |
Static Public Attributes | |
static const char * | m_kStrElmUI = "UI" |
XML element strings. | |
Protected Member Functions | |
CUi (eUI type) | |
Protected constructor (called from CUi::create_ui factory). | |
Protected Attributes | |
eUI | m_eType |
type of UI |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
Factory used to creates a UI.
type | Type of UI we want to create. |
bool CUi::load | ( | CGame * | pGame, | |
const std::string & | filepath | |||
) | [static] |
Load animation descriptions from a file.
pGame | Pointer to the Game we're adding to | |
filepath | Full path to xml data file. |
bool CUi::load | ( | CGame * | pGame, | |
CXMLNode | node | |||
) | [static] |
Load animation descriptions from a file.
pGame | Pointer to the Game we're adding to | |
node | XML node |
bool CUi::load | ( | CGame * | pGame, | |
const std::string & | filename, | |||
const std::string & | path | |||
) | [static] |
Load animation descriptions from a file.
pGame | Pointer to the Game we're adding to | |
filename | Filename of data file. | |
path | Filepath of data file. |