C# Class PrevTetris

Inheritance: MonoBehaviour
Show file Open project: DRMold/HungryHungryTetris

Public Properties

Property Type Description
BLKFALLSPEED float
MAX_ALLOWED_CYCLES_EMPTY int
NXTBLKSPAWNTIME float
PowerBar bool
UI_Score Text
blkFallSpeed float
block Transform
board ].int[
gameOverHeight int
nxtBlkSpawnTime float
playerNum int
qPreview ].int[
rot KeyCode
shapeQueue Queue
spawn bool

Public Methods

Method Description
AddToQueue ( int shape ) : void
CheckDrag ( Vector3 cursorPos ) : void
CheckRow ( int y ) : void
FWithMats ( ) : void
GenBoard ( ) : void
GenBottomAndMoveShapesUp ( ) : void
GenQueue ( ) : void
MoveDown ( ) : void
Rotate ( ) : void
SetCubePositions ( Vector3 piv, List cubePosList, Material mat ) : void
SetMats ( ) : void
SetPowerBarPositions ( Vector3 piv, List cubePosList ) : void
SetQueuePositions ( List cubePosList, Material mat ) : void
SpawnShape ( ) : void
Start ( ) : void
Update ( ) : void
destroyQueue ( ) : void
genPowerBar ( int j ) : void
populateQueue ( ) : void
slowDown ( ) : void
speedUp ( ) : void

Private Methods

Method Description
CheckMove ( ) : bool
CheckRotate ( ) : bool
CheckUserMove ( float moveAmount ) : bool
GenBlock ( Vector3 pos, Material mat ) : Transform
OnDisable ( ) : void
OnEnable ( ) : void
Wait ( ) : IEnumerator
WaitMoveDown ( ) : IEnumerator
pressedHandler ( object sender, System e ) : void
resetSpeed ( ) : void
tappedHandler ( object sender, System e ) : void
transformHandler ( object sender, System e ) : void

Method Details

AddToQueue() public method

public AddToQueue ( int shape ) : void
shape int
return void

CheckDrag() public method

public CheckDrag ( Vector3 cursorPos ) : void
cursorPos Vector3
return void

CheckRow() public method

public CheckRow ( int y ) : void
y int
return void

FWithMats() public method

public FWithMats ( ) : void
return void

GenBoard() public method

public GenBoard ( ) : void
return void

GenBottomAndMoveShapesUp() public method

public GenBottomAndMoveShapesUp ( ) : void
return void

GenQueue() public method

public GenQueue ( ) : void
return void

MoveDown() public method

public MoveDown ( ) : void
return void

Rotate() public method

public Rotate ( ) : void
return void

SetCubePositions() public method

public SetCubePositions ( Vector3 piv, List cubePosList, Material mat ) : void
piv Vector3
cubePosList List
mat Material
return void

SetMats() public method

public SetMats ( ) : void
return void

SetPowerBarPositions() public method

public SetPowerBarPositions ( Vector3 piv, List cubePosList ) : void
piv Vector3
cubePosList List
return void

SetQueuePositions() public method

public SetQueuePositions ( List cubePosList, Material mat ) : void
cubePosList List
mat Material
return void

SpawnShape() public method

public SpawnShape ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

destroyQueue() public method

public destroyQueue ( ) : void
return void

genPowerBar() public method

public genPowerBar ( int j ) : void
j int
return void

populateQueue() public method

public populateQueue ( ) : void
return void

slowDown() public method

public slowDown ( ) : void
return void

speedUp() public method

public speedUp ( ) : void
return void

Property Details

BLKFALLSPEED public static property

public static float BLKFALLSPEED
return float

MAX_ALLOWED_CYCLES_EMPTY public property

public int MAX_ALLOWED_CYCLES_EMPTY
return int

NXTBLKSPAWNTIME public static property

public static float NXTBLKSPAWNTIME
return float

PowerBar public property

public bool PowerBar
return bool

UI_Score public property

public Text UI_Score
return Text

blkFallSpeed public property

public float blkFallSpeed
return float

block public property

public Transform block
return Transform

board public property

public int[,] board
return ].int[

gameOverHeight public property

public int gameOverHeight
return int

nxtBlkSpawnTime public property

public float nxtBlkSpawnTime
return float

playerNum public property

public int playerNum
return int

qPreview public property

public int[,] qPreview
return ].int[

rot public property

public KeyCode rot
return KeyCode

shapeQueue public property

public Queue shapeQueue
return Queue

spawn public property

public bool spawn
return bool