Class ZombiePlayer

java.lang.Object
edu.uw.calebcha.hvz.HvZPlayer
edu.uw.calebcha.hvz.ZombiePlayer

public class ZombiePlayer
extends HvZPlayer
Represents a zombie player in Humans vs Zombies.
Author:
Caleb Chan (cccfire)
  • Constructor Summary

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

    Modifier and Type Method Description
    void knock()
    Called when a Zombie Player is knocked out by a Human
    void loadout()
    Equips the player with starter items.
    void onEntityDamageByEntity​(org.bukkit.event.entity.EntityDamageByEntityEvent event)  
    void onPlayerInteract​(org.bukkit.event.player.PlayerInteractEvent event)  
    void recover()
    Called when a Zombie Player recovers from their knock-out

    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

    • ZombiePlayer

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

      public ZombiePlayer​(HumanPlayer player)
      Creates a ZombiePlayer from a HumanPlayer.
      Parameters:
      player - HumanPlayer to be turned into ZombiePlayer.
  • Method Details

    • loadout

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

      public void knock()
      Called when a Zombie Player is knocked out by a Human
    • recover

      public void recover()
      Called when a Zombie Player recovers from their knock-out
    • onEntityDamageByEntity

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

      public void onPlayerInteract​(org.bukkit.event.player.PlayerInteractEvent event)