Class Tetromino
Inheritance
System.Object
Tetromino
Namespace: Tetris
Assembly: cs.temp.dll.dll
Syntax
public class Tetromino
Fields
Id
Get block's player id
Declaration
public int Id
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
AtSpawn
Gets block's spawn state
Declaration
public bool AtSpawn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Color
stores color of the block
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
CubeGo
Array for the individual cube GameObjects
Declaration
public GameObject[, ] CubeGo { get; set; }
Property Value
Type | Description |
---|---|
GameObject[,] |
IsActive
Gets block's activity state
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsHold
Gets block's hold state
Declaration
public bool IsHold { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLocked
Gets block's lock state
Declaration
public bool IsLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Location
Gets block's location
Declaration
public float[] Location { get; set; }
Property Value
Type | Description |
---|---|
System.Single[] |
RGrid
Gets block rotational grid, used for rotating the block
Declaration
public int[, ] RGrid { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[,] |
RotationState
Gets block's rotation state
Declaration
public int RotationState { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Size
Gets block's array size
Declaration
public int Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TetrominoGo
parent GameObject for the individual cubes
Declaration
public GameObject TetrominoGo { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Type
Gets block's type
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |