Package edu.uw.calebcha.hvz
Class HvZGraveyard
java.lang.Object
edu.uw.calebcha.hvz.HvZGraveyard
public class HvZGraveyard
extends java.lang.Object
Stores data for dead HumanPlayers.
For end-of-game stat-tracking purposes.
- Author:
- Caleb Chan (cccfire)
-
Constructor Summary
Constructors Constructor Description HvZGraveyard()
-
Method Summary
Modifier and Type Method Description boolean
contains(HumanPlayer player)
Checks if HumanPlayer is in graveyard.boolean
contains(org.bukkit.entity.Player player)
Checks if Bukkit Player is in graveyard.java.util.Map<org.bukkit.entity.Player,HumanPlayer>
getPlayermap()
Gets the map storing the HumanPlayersvoid
put(HumanPlayer humanPlayer)
Puts entry Player, HumanPlayer to registry.
-
Constructor Details
-
HvZGraveyard
public HvZGraveyard()
-
-
Method Details
-
getPlayermap
Gets the map storing the HumanPlayers- Returns:
- map of Players to HumanPlayers
-
put
Puts entry Player, HumanPlayer to registry.- Parameters:
humanPlayer
- HumanPlayer being put into registry.
-
contains
public boolean contains(org.bukkit.entity.Player player)Checks if Bukkit Player is in graveyard.- Parameters:
player
- Bukkit Player to query for- Returns:
- true if player is in graveyard, false otherwise
-
contains
Checks if HumanPlayer is in graveyard.- Parameters:
player
- HumanPlayer to query for- Returns:
- true if player is in graveyard, false otherwise
-