Class Player

java.lang.Object
   |
   +----Player

public class Player
extends Object
implements Serializable
Holds one player in the Mud. Contains the players color , location on the board , it's address , power and if it is armed or not.


Variable Index

 o address
 o color
 o isArmed
 o power
 o x
 o y

Constructor Index

 o Player(int, int, Color, Address)
Makes a new player

Method Index

 o toString()

Variables

 o color
 public Color color
 o x
 public int x
 o y
 public int y
 o power
 public int power
 o isArmed
 public boolean isArmed
 o address
 public Address address

Constructors

 o Player
 public Player(int x,
               int y,
               Color c,
               Address addr)
Makes a new player

Parameters:
x - the player's x location
y - the player's y location
c - the player's color
addr - the player's address

Methods

 o toString
 public String toString()
Overrides:
toString in class Object