Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Game Class Reference

#include <game.h>

List of all members.

Public Methods

 Game (Graphics &, Input &, Sound &)
 ~Game ()
bool step ()

Private Methods

int GameLoop ()
int RenderScreen ()

Private Attributes

GraphicsGD
InputID
SoundSD
ObjectManager OM
bool exit
SubWorldcurrentSubWorld
Crosshaircrosshair
bool rapidfire
MainCharmainchar
float rotation


Constructor & Destructor Documentation

Game::Game Graphics  ,
Input  ,
Sound  
 

Definition at line 6 of file game.cpp.

References ObjectManager::AddObject(), currentSubWorld, exit, GD, SubWorld::GetBackground(), Graphics::getHeight(), Background::GetHeight(), ObjectManager::GetMainChar(), Background::GetMaxX(), Background::GetMaxY(), ObjectManager::GetObject(), Graphics::getWidth(), Background::GetWidth(), OM, OT_BEAR, OT_CROSSHAIR, OT_MAINCHAR, Sound::PlayTheme(), rapidfire, rotation, GameObject::SetPosition(), ObjectManager::SetSubWorld(), and MainChar::SetWalkingBounds().

Game::~Game  
 

Definition at line 45 of file game.cpp.

References currentSubWorld.


Member Function Documentation

int Game::GameLoop   [private]
 

Definition at line 116 of file game.cpp.

References ObjectManager::animate(), currentSubWorld, MainChar::FireWeapon(), GD, SubWorld::GetBackground(), ObjectManager::GetCrosshair(), Graphics::getHeight(), ObjectManager::GetMainChar(), Input::GetMouse(), Graphics::getWidth(), GameObject::GetX(), GameObject::GetXint(), GameObject::GetY(), GameObject::GetYint(), GUNSHOT, ID, Input::IsPressed(), MainChar::isWalking(), Input::MOUSE_BUTTON1, OM, Sound::PlaySample(), rapidfire, ObjectManager::recenter(), Input::ResetMouseButton(), Sound::SampleIsPlaying(), MainChar::setLook(), Background::SetPosition(), Crosshair::SetPosition(), MainChar::setWalking(), ObjectManager::think(), ObjectManager::update(), Input::WALK_EAST, Input::WALK_NORTH, Input::WALK_SOUTH, Input::WALK_WEST, and WALKING.

Referenced by step().

int Game::RenderScreen   [private]
 

Definition at line 162 of file game.cpp.

References currentSubWorld, ObjectManager::draw(), Background::Draw(), Background::DrawRect(), Graphics::flip(), GD, SubWorld::GetBackground(), ObjectManager::GetDrawList(), Graphics::getHeight(), Graphics::getWidth(), Graphics::isHWSurface(), OM, Rect, Graphics::RotateZ(), rotation, and Graphics::update().

Referenced by step().

bool Game::step  
 

Definition at line 51 of file game.cpp.

References Input::ADD_UFO, ObjectManager::AddObject(), ALTERNATE_THEME, Input::FULLSCREEN_TOGGLE, GameLoop(), GD, ID, Graphics::isMouseLocked(), Input::IsPressed(), Input::IsShift(), Sound::LoadTheme(), Graphics::lockMouse(), Input::LOCKMOUSE_TOGGLE, Input::MUSIC_TOGGLE, OM, OT_UFO, Sound::PlaySample(), Sound::PlayTheme(), Input::RAPID_FIRE, rapidfire, RenderScreen(), Input::ResetKey(), Input::ROT_DOWN, Input::ROT_UP, rotation, Sound::StopTheme(), Input::SWITCH_MUSIC, THEME_MUSIC, Sound::ThemeIsPlaying(), Graphics::toggleFullscreen(), and UFO_NOISE.

Referenced by Application::Run().


Member Data Documentation

Crosshair* Game::crosshair [private]
 

Definition at line 37 of file game.h.

SubWorld* Game::currentSubWorld [private]
 

Definition at line 34 of file game.h.

Referenced by Game(), GameLoop(), RenderScreen(), and ~Game().

bool Game::exit [private]
 

Definition at line 32 of file game.h.

Referenced by Game().

Graphics& Game::GD [private]
 

Definition at line 24 of file game.h.

Referenced by Game(), GameLoop(), RenderScreen(), and step().

Input& Game::ID [private]
 

Definition at line 25 of file game.h.

Referenced by GameLoop(), and step().

MainChar* Game::mainchar [private]
 

Definition at line 40 of file game.h.

ObjectManager Game::OM [private]
 

Definition at line 29 of file game.h.

Referenced by Game(), GameLoop(), RenderScreen(), and step().

bool Game::rapidfire [private]
 

Definition at line 38 of file game.h.

Referenced by Game(), GameLoop(), and step().

float Game::rotation [private]
 

Definition at line 48 of file game.h.

Referenced by Game(), RenderScreen(), and step().

Sound& Game::SD [private]
 

Definition at line 26 of file game.h.


The documentation for this class was generated from the following files:
Generated on Sun Dec 8 12:02:21 2002 for nnc by doxygen1.3-rc1