Screen Class Reference

#include <Screen.h>

List of all members.

Public Member Functions

void drawLevel (int texture, GLfloat texCoords[4], SDL_Rect quad)
void drawScreen (int texture, GLfloat texCoords[4], SDL_Rect quad)
void drawCutScene (std::string cutSceneText)
void move (int x, int y)
void update ()
void registerFollowObj (Object *o)
ObjectgetFollowObj ()
SDL_Rect getScreenRect ()

Static Public Member Functions

static Screeninstance ()

Static Public Attributes

static const int FRAMERATE = 60

Private Member Functions

 Screen ()

Private Attributes

SDL_Rect _screen
SDL_Rect _center
Object_followMe

Static Private Attributes

static Screen_instance = NULL
static const int CSFRAC = 5
static const int HEIGHT = 760
static const int WIDTH = 1024


Detailed Description

Definition at line 11 of file Screen.h.


Constructor & Destructor Documentation

Screen::Screen  )  [private]
 

Definition at line 11 of file Screen.cpp.

References _center, _screen, HEIGHT, glfuncs::instance(), and WIDTH.

Referenced by instance().


Member Function Documentation

void Screen::drawCutScene std::string  cutSceneText  ) 
 

Definition at line 133 of file Screen.cpp.

References _screen, CSFRAC, glfuncs::glPrint(), and glfuncs::instance().

void Screen::drawLevel int  texture,
GLfloat  texCoords[4],
SDL_Rect  quad
 

Definition at line 99 of file Screen.cpp.

References _screen, glfuncs::instance(), and glfuncs::intersect().

Referenced by Sprite::draw().

void Screen::drawScreen int  texture,
GLfloat  texCoords[4],
SDL_Rect  quad
 

Definition at line 117 of file Screen.cpp.

References glfuncs::instance().

Referenced by Sprite::draw(), and main().

Object* Screen::getFollowObj  )  [inline]
 

Definition at line 25 of file Screen.h.

References _followMe.

SDL_Rect Screen::getScreenRect  )  [inline]
 

Definition at line 27 of file Screen.h.

References _screen.

Referenced by Background::draw(), main(), and Bullet::update().

Screen * Screen::instance  )  [static]
 

Definition at line 92 of file Screen.cpp.

References _instance, and Screen().

Referenced by Camera::control(), Sprite::draw(), Background::draw(), SetCameraCommand::execute(), Level::levelLoad(), main(), and Bullet::update().

void Screen::move int  x,
int  y
 

Definition at line 167 of file Screen.cpp.

References _center, and _screen.

Referenced by Camera::control(), and update().

void Screen::registerFollowObj Object o  ) 
 

Definition at line 162 of file Screen.cpp.

References _followMe.

Referenced by SetCameraCommand::execute(), and Level::levelLoad().

void Screen::update  ) 
 

Definition at line 176 of file Screen.cpp.

References _center, _followMe, Object::getBox(), glfuncs::intersectX(), glfuncs::intersectY(), and move().


Member Data Documentation

SDL_Rect Screen::_center [private]
 

Definition at line 34 of file Screen.h.

Referenced by move(), Screen(), and update().

Object* Screen::_followMe [private]
 

Definition at line 37 of file Screen.h.

Referenced by getFollowObj(), registerFollowObj(), and update().

Screen * Screen::_instance = NULL [static, private]
 

Definition at line 32 of file Screen.h.

Referenced by instance().

SDL_Rect Screen::_screen [private]
 

Definition at line 33 of file Screen.h.

Referenced by drawCutScene(), drawLevel(), getScreenRect(), move(), and Screen().

const int Screen::CSFRAC = 5 [static, private]
 

Definition at line 40 of file Screen.h.

Referenced by drawCutScene().

const int Screen::FRAMERATE = 60 [static]
 

Definition at line 29 of file Screen.h.

Referenced by main(), Person::update(), and Bullet::update().

const int Screen::HEIGHT = 760 [static, private]
 

Definition at line 42 of file Screen.h.

Referenced by Screen().

const int Screen::WIDTH = 1024 [static, private]
 

Definition at line 43 of file Screen.h.

Referenced by Screen().


The documentation for this class was generated from the following files:
Generated on Sat Apr 22 15:05:21 2006 for ProjectX by  doxygen 1.4.6-NO