Package g54327.humbug.model
Class Game
- java.lang.Object
-
- g54327.humbug.model.Game
-
-
Constructor Summary
Constructors Constructor Description Game()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Animal[]
getAnimals()
this.animals getterBoard
getBoard()
this.board getterLevelStatus
getLevelStatus()
Checks the level statusint
getRemainingMoves()
this.remainingMoves gettervoid
move(Position position, Direction direction)
Move an animal at a given position to a given direction.void
startLevel(int nlevel)
Start a given level
-
-
-
Method Detail
-
getBoard
public Board getBoard()
this.board getter
-
getAnimals
public Animal[] getAnimals()
this.animals getter- Specified by:
getAnimals
in interfaceModel
- Returns:
- this.animals
-
getRemainingMoves
public int getRemainingMoves()
this.remainingMoves getter- Specified by:
getRemainingMoves
in interfaceModel
- Returns:
- this.remainingMoves
-
startLevel
public void startLevel(int nlevel)
Start a given level- Specified by:
startLevel
in interfaceModel
- Parameters:
nlevel
- Level to start.
-
getLevelStatus
public LevelStatus getLevelStatus()
Checks the level status- Specified by:
getLevelStatus
in interfaceModel
- Returns:
- Actual status
-
-