Package com.edu.xmum.CST210.Model.Entity
Class GameModel
java.lang.Object
com.edu.xmum.CST210.Model.Entity.GameModel
- All Implemented Interfaces:
IGameModel
GameModel class that implements IGameModel.
This class combines different sub-models such as the player model, maze model, and AI model.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor to initialize the GameModel with player, maze, and AI models. -
Method Summary
Modifier and TypeMethodDescriptionGets the AI model.Gets the maze model.Gets the player model.This method is not needed in this version and returns null.
-
Constructor Details
-
GameModel
public GameModel()Constructor to initialize the GameModel with player, maze, and AI models.
-
-
Method Details
-
getPlayModel
Gets the player model.- Specified by:
getPlayModelin interfaceIGameModel- Returns:
- The player model.
-
getMazeModel
Gets the maze model.- Specified by:
getMazeModelin interfaceIGameModel- Returns:
- The maze model.
-
getAiModel
Gets the AI model.- Specified by:
getAiModelin interfaceIGameModel- Returns:
- The AI model.
-
getSecondPlayModel
This method is not needed in this version and returns null.- Specified by:
getSecondPlayModelin interfaceIGameModel- Returns:
- Null.
-