Class GiveTutorial

java.lang.Object
com.mg105.entities.GiveTutorial

public class GiveTutorial extends Object
Data for what actions player has completed, contains methods for mutating the data
  • Constructor Details

    • GiveTutorial

      public GiveTutorial(boolean moved, boolean attacked, boolean usedItem)
      Constructor for GiveTutorial entity
      Parameters:
      moved - whether player has moved
      attacked - whether player has attacked
      usedItem - whether player has opened a chest
  • Method Details

    • actionPerformedSetter

      public void actionPerformedSetter(String action)
      Set moved, attacked, usedItem to true if they have been performed by player

      action should be a valid action

      Parameters:
      action - the action that has been performed
    • actionPerformedGetter

      public boolean actionPerformedGetter(String action)
      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