|
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...
|
|
◆ 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
-
String | The 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
-
String | name - 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:
- Tetris/Models/TetrominoeParser.cs