17 lines
427 B
Java
17 lines
427 B
Java
import java.io.Serializable;
|
|
|
|
public class Player extends Person implements Serializable {
|
|
boolean isPlayer = true;
|
|
Location current;
|
|
|
|
Player(String name, int age, boolean isMale, boolean isFemale, Location current) {
|
|
super();
|
|
this.name = name;
|
|
this.age = age;
|
|
this.isMale = isMale;
|
|
this.isFemale = isFemale;
|
|
this.heath = 100;
|
|
this.current = current;
|
|
}
|
|
}
|