Package com.mg105.use_cases
Class PlayerGetsTutorial
java.lang.Object
com.mg105.use_cases.PlayerGetsTutorial
Class for determining what phase of the tutorial the player is on, and changing the phase
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerGetsTutorial(List<String> tutorialPhases, int currentPhase) Constructor for PlayerGetsTutorial use case
- 
Method SummaryModifier and TypeMethodDescriptionGet names of all phases of tutorialintGet current phase of tutorial, which is first index of phase listbooleangetActionPerformed(String action) Check if specific action has been performedbooleanCheck if all required actions performed by playervoidAdvance current phase by 1voidsetActionPerformed(String action) Set the action to true if it has been performed
- 
Constructor Details- 
PlayerGetsTutorialConstructor for PlayerGetsTutorial use case- Parameters:
- tutorialPhases- a list of all possible phases in the tutorial
- currentPhase- the integer representing what phase the player is on in the tutorial
 
 
- 
- 
Method Details- 
isCompletepublic boolean isComplete()Check if all required actions performed by player- Returns:
- whether all actions are complete
 
- 
allPhasesGet names of all phases of tutorial- Returns:
- the list of all tutorial phases
 
- 
currentPhasepublic int currentPhase()Get current phase of tutorial, which is first index of phase list- Returns:
- the current phase of tutorial
 
- 
nextPhasepublic void nextPhase()Advance current phase by 1
- 
setActionPerformedSet the action to true if it has been performed- Parameters:
- action- to set to performed
 
- 
getActionPerformedCheck if specific action has been performed- Parameters:
- action- get if it has been performed yet
- Returns:
- if the action has been performed
 
 
-