Package com.mg105.entities
Class GiveTutorial
java.lang.Object
com.mg105.entities.GiveTutorial
Data for what actions player has completed, contains methods for mutating the data
-
Constructor Summary
ConstructorDescriptionGiveTutorial
(boolean moved, boolean attacked, boolean usedItem) Constructor for GiveTutorial entity -
Method Summary
Modifier and TypeMethodDescriptionboolean
actionPerformedGetter
(String action) Get if player has moved, attacked, and usedItem.void
actionPerformedSetter
(String action) Set moved, attacked, usedItem to true if they have been performed by player
-
Constructor Details
-
GiveTutorial
public GiveTutorial(boolean moved, boolean attacked, boolean usedItem) Constructor for GiveTutorial entity- Parameters:
moved
- whether player has movedattacked
- whether player has attackedusedItem
- whether player has opened a chest
-
-
Method Details
-
actionPerformedSetter
Set moved, attacked, usedItem to true if they have been performed by playeraction should be a valid action
- Parameters:
action
- the action that has been performed
-
actionPerformedGetter
Get if player has moved, attacked, and usedItem.action should be a valid action
- Parameters:
action
- the action that is checked- Returns:
- whether the player has performed each action
-