Class HvZPlayer

java.lang.Object
edu.uw.calebcha.hvz.HvZPlayer
Direct Known Subclasses:
HumanPlayer, ZombiePlayer

public abstract class HvZPlayer
extends java.lang.Object
Represents a Humans vs Zombies player. Wrapper class of org.bukkit.entity.Player
Author:
Caleb Chan (cccfire)
  • Constructor Summary

    Constructors 
    Constructor Description
    HvZPlayer​(org.bukkit.entity.Player player, HvZGame game)
    Creates a Humans vs Zombies player from a Bukkit Player.
  • Method Summary

    Modifier and Type Method Description
    HvZGame getGame()
    Get the game this HvZPlayer is in.
    org.bukkit.entity.Player getPlayer()
    Get Bukkit Player corresponding to this HvZPlayer.
    abstract void loadout()
    Equips the player with starter items.

    Methods inherited from class java.lang.Object

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

    • HvZPlayer

      public HvZPlayer​(org.bukkit.entity.Player player, HvZGame game)
      Creates a Humans vs Zombies player from a Bukkit Player.
      Parameters:
      player - the Bukkit Player joining the game.
      game - the game this player is in
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get Bukkit Player corresponding to this HvZPlayer.
      Returns:
      corresponding Bukkit Player
    • getGame

      public HvZGame getGame()
      Get the game this HvZPlayer is in.
      Returns:
      the game this player is in
    • loadout

      public abstract void loadout()
      Equips the player with starter items.