2D Engine v0.1.0
Loading...
Searching...
No Matches
Board Class Reference

Size and scale of game world. More...

#include <Board.hpp>

Collaboration diagram for Board:
Collaboration graph

Public Member Functions

 Board ()
 Construct a new Board object.
 
 Board (const int tileSize, const int width, const int height)
 Construct a new Board object.
 
void Render (SDL_Renderer *const renderer)
 Render the grid tiles of the board.
 

Public Attributes

const int m_tileSize
 
const int m_boardWidth
 
const int m_boardHeight
 

Detailed Description

Size and scale of game world.

Constructor & Destructor Documentation

◆ Board() [1/2]

Board::Board ( )
inline

Construct a new Board object.

◆ Board() [2/2]

Board::Board ( const int tileSize,
const int width,
const int height )
inline

Construct a new Board object.

Parameters
tileSizesize of each tile in pixels
widthwidth of board in grid units
heightheight of board in grid units

Member Function Documentation

◆ Render()

void Board::Render ( SDL_Renderer *const renderer)

Render the grid tiles of the board.

Parameters
rendererSDL renderer

Member Data Documentation

◆ m_boardHeight

const int Board::m_boardHeight

◆ m_boardWidth

const int Board::m_boardWidth

◆ m_tileSize

const int Board::m_tileSize

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