Class Game
java.lang.Object
uk.radialbog9.spigot.manhunt.game.Game
Class that represents a game of Manhunt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArrayList<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.
-
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
Gets all players in the game - both runners and hunters.- Returns:
- ArrayList of players in the game
-