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
-
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
-
public org.bukkit.entity.Player getPlayer()
Get Bukkit Player corresponding to this HvZPlayer.
- Returns:
- corresponding Bukkit Player
-
Get the game this HvZPlayer is in.
- Returns:
- the game this player is in
-
public abstract void loadout()
Equips the player with starter items.