KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Game Class Reference

#include <game.h>

Public Member Functions

 Game ()
 
void Draw ()
 
void DrawBlockAtPosition (Block &block, int offsetX, int offsetY, int offsetXAdjustment, int offsetYAdjustment)
 
void DrawHeld (int offsetX, int offsetY)
 
void HandleInput ()
 
void MoveBlockDown ()
 
void DrawNext (int offsetX, int offsetY)
 
bool Running ()
 

Data Fields

bool gameOver
 
int score
 

Constructor & Destructor Documentation

◆ Game()

Game::Game ( )

Member Function Documentation

◆ Draw()

void Game::Draw ( )

References Block::Draw(), Grid::Draw(), and Constants::gridOffset.

Referenced by main().

◆ DrawBlockAtPosition()

void Game::DrawBlockAtPosition ( Block & block,
int offsetX,
int offsetY,
int offsetXAdjustment,
int offsetYAdjustment )

References block.

Referenced by DrawHeld(), and DrawNext().

◆ DrawHeld()

void Game::DrawHeld ( int offsetX,
int offsetY )

References DrawBlockAtPosition().

Referenced by main().

◆ DrawNext()

void Game::DrawNext ( int offsetX,
int offsetY )

References DrawBlockAtPosition().

Referenced by main().

◆ HandleInput()

void Game::HandleInput ( )

◆ MoveBlockDown()

void Game::MoveBlockDown ( )

References gameOver, GetTime(), and Block::Move().

Referenced by HandleInput(), and main().

◆ Running()

bool Game::Running ( )

Referenced by main().

Field Documentation

◆ gameOver

bool Game::gameOver

Referenced by Game(), HandleInput(), main(), and MoveBlockDown().

◆ score

int Game::score

Referenced by Game(), and main().


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