|
|
@ -5,9 +5,6 @@ import views.ViewsGame
|
|
|
|
class DashBoard(private val width: Int,private val height: Int,private val view: ViewsGame) {
|
|
|
|
class DashBoard(private val width: Int,private val height: Int,private val view: ViewsGame) {
|
|
|
|
val gridOfGame = Array(this.height) { IntArray(this.width) }
|
|
|
|
val gridOfGame = Array(this.height) { IntArray(this.width) }
|
|
|
|
|
|
|
|
|
|
|
|
// Our getter
|
|
|
|
|
|
|
|
fun getWidth(): Int = this.width
|
|
|
|
|
|
|
|
fun getHeight(): Int = this.height
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// To set something to occupied
|
|
|
|
// To set something to occupied
|
|
|
|
|
|
|
|
|
|
|
|