Caseus Tower
 All Classes Namespaces Files Functions Variables
App Class Reference

Creates an App object that runs the application Creates an App object that runs the application. More...

#include <application.h>

Public Member Functions

 App (SDL_Renderer *, int, int)
 
 ~App ()
 
bool input ()
 
void update (float)
 
void draw ()
 

Private Attributes

SDL_Renderer * renderer
 
int screenWidth
 
int screenHeight
 
SpriteHandlersprites
 
StateManagerstateManager
 
float userX
 
float userY
 

Detailed Description

Creates an App object that runs the application Creates an App object that runs the application.

Definition at line 12 of file application.h.

Constructor & Destructor Documentation

App::App ( SDL_Renderer *  ,
int  ,
int   
)

Constructs an App object

Parameters
SDL_Renderer* a pointer to the renderer
intthe screen width
intthe screen height
App::~App ( )

Destructs an App object

Member Function Documentation

void App::draw ( )

Draws the Game object

bool App::input ( )

Handles the App input

Returns
bool if false the quit App
void App::update ( float  )

Update the App object

Parameters
floatthe deltaTime

Member Data Documentation

SDL_Renderer* App::renderer
private

a pointer to the renderer

Definition at line 16 of file application.h.

int App::screenHeight
private

Definition at line 19 of file application.h.

int App::screenWidth
private

the dimensions of the screen

Definition at line 18 of file application.h.

SpriteHandler* App::sprites
private

a pointer to the sprites

Definition at line 21 of file application.h.

StateManager* App::stateManager
private

a pointer to the stateManager

Definition at line 23 of file application.h.

float App::userX
private

Definition at line 25 of file application.h.

float App::userY
private

Definition at line 26 of file application.h.


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