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 HumanPlayers
    void put​(HumanPlayer humanPlayer)
    Puts entry Player, HumanPlayer to registry.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getPlayermap

      public java.util.Map<org.bukkit.entity.Player,​HumanPlayer> getPlayermap()
      Gets the map storing the HumanPlayers
      Returns:
      map of Players to HumanPlayers
    • put

      public void put​(HumanPlayer humanPlayer)
      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

      public boolean contains​(HumanPlayer player)
      Checks if HumanPlayer is in graveyard.
      Parameters:
      player - HumanPlayer to query for
      Returns:
      true if player is in graveyard, false otherwise