Package edu.uw.calebcha.hvz
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 Humanvoid
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
-
Constructor Details
-
ZombiePlayer
Creates ZombiePlayer wrapping a Bukkit Player.- Parameters:
player
- Bukkit Player to be wrappedgame
- the game this player is in
-
ZombiePlayer
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. -
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)
-