#include <Interface.h>
Inherits Texture.
Inheritance diagram for Interface:
Public Member Functions | |
Interface (Level *p_level) | |
Standard constructor. | |
virtual | ~Interface () |
Standard destructor. | |
int | render () |
Renders the Interface. | |
int | load (std::string p_style, std::string p_playerName) |
Loads all Interface data from given ressource file. | |
Public Attributes | |
std::string | playerName |
Holds the name of the player to display. | |
Level * | level |
Holds a pointert to the instance of the Level. | |
std::vector< Button * > | buttons |
Holds all buttons. | |
Object * | energyCounter |
Holds the energy counter. | |
Vector3d | energyCounterPos |
Holds the energy counter's position. | |
Vector3d | energyCounterFontPos |
Holds the energy counter's font position. | |
Object * | unitWindow |
Holds the unit window. | |
Vector3d | unitWindowPos |
Holds the unit window's position. |
Definition at line 35 of file Interface.h.
Interface::Interface | ( | Level * | p_level | ) |
Interface::~Interface | ( | ) | [virtual] |
int Interface::render | ( | ) | [virtual] |
Renders the Interface.
Reimplemented from Texture.
Definition at line 44 of file Interface.cpp.
References buttons, energyCounter, energyCounterFontPos, energyCounterPos, Texture::get(), Texture::getField(), GLInterface::glPrint2d(), level, playerName, Level::players, Object::render(), Field::render(), Texture::render(), Field::renderChild(), Field::s_selectedFieldID, Unit::s_selectedID, Object::size, unitWindow, unitWindowPos, Vector3d::x, Vector3d::y, and Vector3d::z.
Referenced by Level::renderInterface().
Here is the call graph for this function:
int Interface::load | ( | std::string | p_style, | |
std::string | p_playerName | |||
) |
Loads all Interface data from given ressource file.
Definition at line 98 of file Interface.cpp.
References buttons, energyCounter, energyCounterFontPos, energyCounterPos, Button::label, Texture::loadAndBind(), playerName, Button::pos, Object::size, splitLine(), unitWindow, unitWindowPos, and Button::val.
Referenced by Level::load().
Here is the call graph for this function:
std::string Interface::playerName |
Holds a pointert to the instance of the Level.
Definition at line 70 of file Interface.h.
Referenced by Interface(), and render().
std::vector<Button*> Interface::buttons |