Class MaximumScoreGoal

java.lang.Object
edu.ntnu.idatt2001.paths.models.goals.MaximumScoreGoal
All Implemented Interfaces:
Goal<Integer>

public class MaximumScoreGoal extends Object implements Goal<Integer>
MinimumScoreGoal class. Checks if the player's score is less than or equal to a certain amount. The amount of score for fulfillment is defined when instantiated. Players can start with negative score and the maximum score can therefore also be negative.
Version:
0.4 - 29.04.2023
Author:
Carl G. Callum G.
  • Constructor Details

    • MaximumScoreGoal

      public MaximumScoreGoal(int maximumScore)
      Creates a new score goal which checks the player's score with the maximum score.
      Parameters:
      maximumScore - int - the amount of score for fulfillment
  • Method Details