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 getterBoardgetBoard()this.board getterLevelStatusgetLevelStatus()Checks the level statusintgetRemainingMoves()this.remainingMoves gettervoidmove(Position position, Direction direction)Move an animal at a given position to a given direction.voidstartLevel(int nlevel)Start a given level
-
-
-
Method Detail
-
getBoard
public Board getBoard()
this.board getter
-
getAnimals
public Animal[] getAnimals()
this.animals getter- Specified by:
getAnimalsin interfaceModel- Returns:
- this.animals
-
getRemainingMoves
public int getRemainingMoves()
this.remainingMoves getter- Specified by:
getRemainingMovesin interfaceModel- Returns:
- this.remainingMoves
-
startLevel
public void startLevel(int nlevel)
Start a given level- Specified by:
startLevelin interfaceModel- Parameters:
nlevel- Level to start.
-
getLevelStatus
public LevelStatus getLevelStatus()
Checks the level status- Specified by:
getLevelStatusin interfaceModel- Returns:
- Actual status
-
-