Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MB2D.Geometry.Grid Class Reference

Represents a grid structure. Can be drawn via a SpriteBatch More...

Collaboration diagram for MB2D.Geometry.Grid:
Collaboration graph

Public Member Functions

 Grid (int rows, int cols, int rowSize, int colSize)
 Initializes a new instance of the T:MB2D.Geometry.Grid class. More...
 

Properties

int RowCount [get, set]
 Gets or sets the number of rows. More...
 
int ColCount [get, set]
 Gets or sets the number of columns. More...
 
int RowSize [get, set]
 Gets or sets the size of each row. More...
 
int ColSize [get, set]
 Gets or sets the size of each column. More...
 
Vector2 CellSize [get]
 Gets the size of each cell. More...
 

Detailed Description

Represents a grid structure. Can be drawn via a SpriteBatch

Constructor & Destructor Documentation

§ Grid()

MB2D.Geometry.Grid.Grid ( int  rows,
int  cols,
int  rowSize,
int  colSize 
)
inline

Initializes a new instance of the T:MB2D.Geometry.Grid class.

Parameters
rowsNumber of rows
colsNumber of columns
rowSizeSize of each row
colSizeSize of each column

Property Documentation

§ CellSize

Vector2 MB2D.Geometry.Grid.CellSize
get

Gets the size of each cell.

The size of each cell.

§ ColCount

int MB2D.Geometry.Grid.ColCount
getset

Gets or sets the number of columns.

The colomn count.

§ ColSize

int MB2D.Geometry.Grid.ColSize
getset

Gets or sets the size of each column.

The size of each column.

§ RowCount

int MB2D.Geometry.Grid.RowCount
getset

Gets or sets the number of rows.

The row count.

§ RowSize

int MB2D.Geometry.Grid.RowSize
getset

Gets or sets the size of each row.

The size of each row.


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