Package com.edu.xmum.CST210.Model.Entity
Class GameModelVs
java.lang.Object
com.edu.xmum.CST210.Model.Entity.GameModelVs
- All Implemented Interfaces:
IGameModel
GameModelVs class that implements IGameModel.
This class combines different sub-models such as the player model, maze model, and second player model for a versus game mode.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor to initialize the GameModelVs with player, maze, and second player models. -
Method Summary
Modifier and TypeMethodDescriptionThis version does not require an AI model.Gets the maze model.Gets the player model.Gets the second player model.
-
Constructor Details
-
GameModelVs
public GameModelVs()Constructor to initialize the GameModelVs with player, maze, and second player 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
This version does not require an AI model.- Specified by:
getAiModelin interfaceIGameModel- Returns:
- Null.
-
getSecondPlayModel
Gets the second player model.- Specified by:
getSecondPlayModelin interfaceIGameModel- Returns:
- The second player model.
-