class
Grid extends Object
Instance Constructors
-
new
Grid(size: Int)
-
new
Grid(size: Int, previousState: Array[Array[TileSerialized]], over: Boolean, won: Boolean)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
addRandomTile(): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
availableCells(): Array[Position]
-
-
def
cellAvailable(cell: Position): Boolean
-
def
cellContent(cell: Position): Tile
-
def
cellOccupied(cell: Position): Boolean
-
val
cells: Array[Array[Tile]]
-
def
cellsAvailable(): Int
-
def
clone(): AnyRef
-
def
eachCell(callback: Function3[Int, Int, Tile, Unit]): Unit
-
def
empty(): Array[Array[Tile]]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
-
def
fromState(state: Array[Array[Object]]): Array[Array[Tile]]
-
final
def
getClass(): Class[_]
-
def
getVector(direction: Int): Vector
-
def
hasOwnProperty(v: String): Boolean
-
def
hashCode(): Int
-
def
insertTile(tile: Tile): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPrototypeOf(v: Object): Boolean
-
def
move(direction: Int): Move
-
def
moveTile(tile: Tile, cell: Position): Unit
-
def
movesAvailable(): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
over: Boolean
-
def
positionsEqual(first: Position, second: Position): Boolean
-
def
prepareTiles(): Unit
-
val
previousState: Array[Array[TileSerialized]]
-
def
propertyIsEnumerable(v: String): Boolean
-
def
randomAvailableCell(): Tile
-
def
removeTile(tile: Tile): Unit
-
-
val
size: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
tileMatchesAvailable(): Boolean
-
def
toLocaleString(): String
-
def
toString(): String
-
def
valueOf(): Any
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withinBounds(position: Position): Boolean
-
val
won: Boolean
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any