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

#include <block.h>

Public Member Functions

 Block ()
 
void Draw (int offsetX, int offsetY)
 
void Move (int rows, int columns)
 
void Reset ()
 
std::vector< PositionGetCellPositions ()
 
void Rotate ()
 
void UndoRotation ()
 

Data Fields

int id
 
std::map< int, std::vector< Position > > cells
 
const char * vmuIcon
 

Constructor & Destructor Documentation

◆ Block()

Block::Block ( )

Member Function Documentation

◆ Draw()

void Block::Draw ( int offsetX,
int offsetY )

References GetCellPositions().

Referenced by Game::Draw().

◆ GetCellPositions()

std::vector< Position > Block::GetCellPositions ( )

References cells.

Referenced by Draw().

◆ Move()

void Block::Move ( int rows,
int columns )

Referenced by Game::MoveBlockDown().

◆ Reset()

void Block::Reset ( )

References Constants::numCols.

◆ Rotate()

void Block::Rotate ( )

References cells.

◆ UndoRotation()

void Block::UndoRotation ( )

References cells.

Field Documentation

◆ cells

std::map<int, std::vector<Position> > Block::cells

◆ id

int Block::id

◆ vmuIcon

const char* Block::vmuIcon

Referenced by Block(), and Game::HandleInput().


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