Class Game

java.lang.Object
uk.radialbog9.spigot.manhunt.game.Game

public class Game extends Object
Class that represents a game of Manhunt.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ArrayList<org.bukkit.entity.Player>
    Gets all players in the game - both runners and hunters.
    boolean
    isDeadRunner(org.bukkit.entity.Player p)
    Returns true if the player is a dead runner.
    boolean
    isDisconnectedHunter(org.bukkit.OfflinePlayer p)
    Returns true if the player was a hunter but was disconnected.
    boolean
    isDisconnectedRunner(org.bukkit.OfflinePlayer p)
    Returns true if the player was a runner but was disconnected.
    boolean
    isHunter(org.bukkit.entity.Player p)
    Returns true if the player is a hunter.
    boolean
    isRunner(org.bukkit.entity.Player p)
    Returns true if the player is a runner.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Game

      public Game()
  • Method Details

    • isHunter

      public boolean isHunter(org.bukkit.entity.Player p)
      Returns true if the player is a hunter.
      Parameters:
      p - Player the player
      Returns:
      true if the player is a hunter, false otherwise
    • isDisconnectedHunter

      public boolean isDisconnectedHunter(org.bukkit.OfflinePlayer p)
      Returns true if the player was a hunter but was disconnected.
      Parameters:
      p - Player the player
      Returns:
      true if the player was a hunter but was disconnected, false otherwise
    • isRunner

      public boolean isRunner(org.bukkit.entity.Player p)
      Returns true if the player is a runner.
      Parameters:
      p - Player the player
      Returns:
      true if the player is a runner, false otherwise
    • isDisconnectedRunner

      public boolean isDisconnectedRunner(org.bukkit.OfflinePlayer p)
      Returns true if the player was a runner but was disconnected.
      Parameters:
      p - Player the player
      Returns:
      true if the player was a runner but was disconnected, false otherwise
    • isDeadRunner

      public boolean isDeadRunner(org.bukkit.entity.Player p)
      Returns true if the player is a dead runner.
      Parameters:
      p - Player the player
      Returns:
      true if the player is a dead runner, false otherwise
    • getPlayers

      public ArrayList<org.bukkit.entity.Player> getPlayers()
      Gets all players in the game - both runners and hunters.
      Returns:
      ArrayList of players in the game