Class HvZPlayerRegistry

java.lang.Object
edu.uw.calebcha.hvz.HvZPlayerRegistry

public class HvZPlayerRegistry
extends java.lang.Object
A structure storing all Humans vs Zombies player data.
Author:
Caleb Chan (cccfire)
  • Constructor Summary

    Constructors 
    Constructor Description
    HvZPlayerRegistry()  
  • Method Summary

    Modifier and Type Method Description
    boolean contains​(HvZPlayer player)
    Checks if HvZPlayer is in registry.
    boolean contains​(org.bukkit.entity.Player player)
    Checks if Bukkit Player is in registry.
    java.util.Map<org.bukkit.entity.Player,​HvZPlayer> getPlayermap()
    Gets the map storing the HvZPlayers
    void put​(HvZPlayer hvzPlayer)
    Puts entry Player, HvZPlayer 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,​HvZPlayer> getPlayermap()
      Gets the map storing the HvZPlayers
      Returns:
      map of Players to HvZPlayers
    • put

      public void put​(HvZPlayer hvzPlayer)
      Puts entry Player, HvZPlayer to registry.
      Parameters:
      hvzPlayer - HvZPlayer being put into registry.
    • contains

      public boolean contains​(org.bukkit.entity.Player player)
      Checks if Bukkit Player is in registry.
      Parameters:
      player - Bukkit Player to query for
      Returns:
      true if player is in registry, false otherwise
    • contains

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