Game

class Game extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Game
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Game(startLevel: File)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getGridType(x: Int, y: Int): <error>

    Returns the type of the tile in GridType format specified by given coordinates.

    Returns the type of the tile in GridType format specified by given coordinates.

    x

    the x-coordinate of needed tile

    y

    the y-coordinate of needed tile

    returns

    type of the needed tile as GridType object

  13. def hasGameFinished(): Boolean

    Helping method that tells if the game is ended.

    Helping method that tells if the game is ended. Game end when the PLAYERGOAL.

    returns

    true if the game has finished, otherwise false

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def height(): Int

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def move(x: Int, y: Int): Boolean

    Moves the player in the specified location (if it is possible).

    Moves the player in the specified location (if it is possible). The method takes care that the state of the field (including players moves and possible obstacle moves) and players position is updated.

    x

    the x-coordinate where player is trying to move

    y

    the y-coordinate where player is trying to move

    returns

    true if move successful, otherwise false

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def startOver(f: File): Unit

    Another version of startOver method that takes a new game field file as an argument.

    Another version of startOver method that takes a new game field file as an argument. The game is started from the state that the new file specifies.

    f

    the file containing details of the new field

  22. def startOver(): Unit

    Returns the state of the game field to the state that it was in the beginning of the game.

    Returns the state of the game field to the state that it was in the beginning of the game. The player starts from the initial place and all obstacles are in the original positions.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def width(): Int

Inherited from AnyRef

Inherited from Any

Ungrouped