You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import Player from "./Player";
|
|
|
|
class Human extends Player{
|
|
|
|
constructor(id: string, name: string){
|
|
super(id, name)
|
|
}
|
|
|
|
toJson() {
|
|
return {
|
|
type: "Human",
|
|
id: this.id,
|
|
name: this.name,
|
|
};
|
|
}
|
|
}
|
|
|
|
export default Human |