Class ScoreManager

java.lang.Object
fr.multimc.api.spigot.games.score.ScoreManager

public class ScoreManager extends Object
  • Constructor Details

    • ScoreManager

      public ScoreManager(TeamManager teamManager)
      Constructor of ScoreManager object
      Parameters:
      teamManager - TeamManager object
  • Method Details

    • updateScore

      public void updateScore(MmcTeam team, int newScore)
      Set a new score to a team
      Parameters:
      team - MmcTeam object
      newScore - The new score to set
    • addScore

      public void addScore(MmcTeam team, int scoreAddition)
      Add a score to a team
      Parameters:
      team - MmcTeam object
      scoreAddition - The score to add
    • setScore

      public void setScore(MmcTeam team, int score)
      Add a new score to a team
      Parameters:
      team - MmcTeam object
      score - The score to set
    • removeScore

      public void removeScore(MmcTeam team)
      Remove a score to a team
      Parameters:
      team - MmcTeam object
    • pushScore

      public void pushScore()
      Push the scores to the database
    • getScores

      public int getScores(MmcTeam team)
      Get the score of a team
      Parameters:
      team - MmcTeam object
      Returns:
      The score of the team