|
|
|
@ -14,25 +14,27 @@ class Game(private val width: Int,private val height: Int,private val viewGame:V
|
|
|
|
|
// The start game function
|
|
|
|
|
|
|
|
|
|
fun startGame(){
|
|
|
|
|
//this.setCurrentShape(TypeShape.SquareShape)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
currentShape = Shape(TypeShape(EnumTypeShape.IShape),Position(2,5))
|
|
|
|
|
dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
currentShape = Shape(TypeShape(EnumTypeShape.SquareShape),Position(2,6))
|
|
|
|
|
dashBoard.addShape(currentShape)
|
|
|
|
|
//currentShape = Shape(TypeShape(EnumTypeShape.SquareShape),Position(2,6))
|
|
|
|
|
//dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
currentShape = Shape(TypeShape(EnumTypeShape.TShape),Position(2,8))
|
|
|
|
|
dashBoard.addShape(currentShape)
|
|
|
|
|
//currentShape = Shape(TypeShape(EnumTypeShape.TShape),Position(2,8))
|
|
|
|
|
//dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
currentShape = Shape(TypeShape(EnumTypeShape.ZShape),Position(2,10))
|
|
|
|
|
dashBoard.addShape(currentShape)
|
|
|
|
|
//currentShape = Shape(TypeShape(EnumTypeShape.ZShape),Position(2,10))
|
|
|
|
|
//dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
currentShape = Shape(TypeShape(EnumTypeShape.SShape),Position(1,1))
|
|
|
|
|
dashBoard.addShape(currentShape)
|
|
|
|
|
//currentShape = Shape(TypeShape(EnumTypeShape.SShape),Position(1,1))
|
|
|
|
|
//dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
//currentShape = Shape(TypeShape(EnumTypeShape.JShape),Position(1,1))
|
|
|
|
|
//dashBoard.addShape(currentShape)
|
|
|
|
|
|
|
|
|
|
dashBoard.gridOfGame[1][0] = 2
|
|
|
|
|
dashBoard.gridOfGame[1][6] = 3
|
|
|
|
|
//dashBoard.gridOfGame[2][0] = 5
|
|
|
|
|
|
|
|
|
|
//println(currentShape.position.getX())
|
|
|
|
|
//println(currentShape.position.getY())
|
|
|
|
|