Class HumanPlayer

java.lang.Object
edu.uw.calebcha.hvz.HvZPlayer
edu.uw.calebcha.hvz.HumanPlayer
All Implemented Interfaces:
org.bukkit.event.Listener

public class HumanPlayer
extends HvZPlayer
implements org.bukkit.event.Listener
Represents a human player in Humans vs Zombies.
Author:
Caleb Chan (cccfire)
  • Constructor Summary

    Constructors 
    Constructor Description
    HumanPlayer​(org.bukkit.entity.Player player, HvZGame game)
    Creates HumanPlayer wrapping a Bukkit Player.
  • Method Summary

    Modifier and Type Method Description
    void loadout()
    Equips the player with starter items.
    void onEntityDamageByEntity​(org.bukkit.event.entity.EntityDamageByEntityEvent event)  
    void turn()
    Turn into a ZombiePlayer.

    Methods inherited from class edu.uw.calebcha.hvz.HvZPlayer

    getGame, getPlayer

    Methods inherited from class java.lang.Object

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

    • HumanPlayer

      public HumanPlayer​(org.bukkit.entity.Player player, HvZGame game)
      Creates HumanPlayer wrapping a Bukkit Player.
      Parameters:
      player - Bukkit Player to be wrapped
      game - the game this player is in
  • Method Details

    • loadout

      public void loadout()
      Description copied from class: HvZPlayer
      Equips the player with starter items.
      Specified by:
      loadout in class HvZPlayer
    • turn

      public void turn()
      Turn into a ZombiePlayer.
    • onEntityDamageByEntity

      public void onEntityDamageByEntity​(org.bukkit.event.entity.EntityDamageByEntityEvent event)