Robot Devastation
Public Member Functions | Static Public Attributes | Static Protected Attributes | Private Attributes | Static Private Attributes | List of all members
rd::MockScreen Class Reference

A User Interface for testing purposes.

#include <MockScreen.hpp>

Inheritance diagram for rd::MockScreen:
rd::Screen

Public Member Functions

virtual bool init ()
 
virtual bool cleanup ()
 
virtual bool show ()
 
virtual bool drawScreen (void *screen)
 
virtual bool update (const std::string &parameter, const std::string &value)
 
- Public Member Functions inherited from rd::Screen
virtual bool update (const std::string &parameter, const Image &value)
 
virtual bool update (const std::string &parameter, const Player &value)
 
virtual bool update (const std::string &parameter, const std::vector< Player > &value)
 
virtual bool update (const std::string &parameter, const std::vector< Target > &value)
 
virtual bool update (const std::string &parameter, const Weapon &value)
 
virtual int getHeight () const
 
virtual int getWidth () const
 

Static Public Attributes

static const std::string PARAM_MESSAGE = "message"
 

Static Protected Attributes

static const std::string IMAGE_PATH = "../images/unittesting.jpg"
 
static const std::string FONT_PATH = "../fonts/FreeMono.ttf"
 

Private Attributes

SDL_Window * window
 
SDL_Surface * screen
 
TTF_Font * font
 
SDL_Surface * text_surface
 
SDL_Surface * background
 
std::string remaining_time
 

Static Private Attributes

static const SDL_Color TEXT_COLOR = {255,0,0,0}
 

Additional Inherited Members

- Protected Attributes inherited from rd::Screen
int h
 
int w
 

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