Skyscraper 2.0
Skyscraper::StartScreen Class Reference

#include <startscreen.h>

Collaboration diagram for Skyscraper::StartScreen:

Classes

struct  buttondata
 

Public Member Functions

 StartScreen (Skyscraper *frontend)
 
 ~StartScreen ()
 
bool DrawBackground ()
 
bool GetMenuInput ()
 
void DeleteButtons ()
 

Private Member Functions

bool DrawImage (const std::string &filename, buttondata *button, Real x, Real y, bool center, const std::string &filename_selected="", const std::string &filename_pressed="")
 
void Click (int index)
 

Private Attributes

buttondatabuttons
 
int buttoncount
 
Ogre::Rectangle2D * background_rect
 
Ogre::SceneNode * background_node
 
std::string background_image
 
Skyscraperfrontend
 
VMvm
 

Detailed Description

Definition at line 26 of file startscreen.h.

Constructor & Destructor Documentation

◆ StartScreen()

Skyscraper::StartScreen::StartScreen ( Skyscraper * frontend)

Definition at line 38 of file startscreen.cpp.

References background_node, background_rect, buttoncount, buttons, frontend, and vm.

◆ ~StartScreen()

Skyscraper::StartScreen::~StartScreen ( )

Definition at line 48 of file startscreen.cpp.

Member Function Documentation

◆ Click()

void Skyscraper::StartScreen::Click ( int index)
private

◆ DeleteButtons()

◆ DrawBackground()

◆ DrawImage()

◆ GetMenuInput()

Member Data Documentation

◆ background_image

std::string Skyscraper::StartScreen::background_image
private

Definition at line 60 of file startscreen.h.

Referenced by DeleteButtons(), and DrawImage().

◆ background_node

Ogre::SceneNode* Skyscraper::StartScreen::background_node
private

Definition at line 59 of file startscreen.h.

Referenced by DeleteButtons(), DrawImage(), and StartScreen().

◆ background_rect

Ogre::Rectangle2D* Skyscraper::StartScreen::background_rect
private

Definition at line 58 of file startscreen.h.

Referenced by DeleteButtons(), DrawImage(), and StartScreen().

◆ buttoncount

int Skyscraper::StartScreen::buttoncount
private

Definition at line 56 of file startscreen.h.

Referenced by DeleteButtons(), DrawBackground(), GetMenuInput(), and StartScreen().

◆ buttons

buttondata* Skyscraper::StartScreen::buttons
private

Definition at line 55 of file startscreen.h.

Referenced by DeleteButtons(), DrawBackground(), GetMenuInput(), and StartScreen().

◆ frontend

Skyscraper* Skyscraper::StartScreen::frontend
private

Definition at line 65 of file startscreen.h.

Referenced by Click(), DrawImage(), GetMenuInput(), and StartScreen().

◆ vm

VM* Skyscraper::StartScreen::vm
private

Definition at line 66 of file startscreen.h.

Referenced by Click(), DrawBackground(), DrawImage(), and StartScreen().


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