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.
-
address
-
-
color
-
-
isArmed
-
-
power
-
-
x
-
-
y
-
-
Player(int, int, Color, Address)
- Makes a new player
-
toString()
-
color
public Color color
x
public int x
y
public int y
power
public int power
isArmed
public boolean isArmed
address
public Address address
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
toString
public String toString()
- Overrides:
- toString in class Object