Tetris
TetrominoeParser Class Reference

Static Public Member Functions

static bool[,] GetShape (String name)
 It takes a name, and returns a tetrominoe shape More...
 
static Color GetColor (String name)
 It takes a name, checks if it's in the dictionary, and if it is, it returns the color More...
 
static List< String > List ()
 It returns a list of all the properties in the content object More...
 

Member Function Documentation

◆ GetColor()

static Color TetrominoeParser.GetColor ( String  name)
static

It takes a name, checks if it's in the dictionary, and if it is, it returns the color

Parameters
StringThe name of the color you want to get.
Returns
A color object

◆ GetShape()

static bool[,] TetrominoeParser.GetShape ( String  name)
static

It takes a name, and returns a tetrominoe shape

Parameters
Stringname - The name of the shape to get.
Returns
The shape of the tetrominoe as an 2D array of booleans.

◆ List()

static List< String > TetrominoeParser.List ( )
static

It returns a list of all the properties in the content object

Returns
A list of all the property names in the content object.

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