Files
Werewolf/server/model/Person.js
2021-12-20 00:28:40 -05:00

20 lines
594 B
JavaScript

// noinspection DuplicatedCode
class Person {
constructor(id, cookie, name, userType, gameRole=null, gameRoleDescription=null, alignment=null, assigned=false) {
this.id = id;
this.cookie = cookie
this.socketId = null;
this.name = name;
this.userType = userType;
this.gameRole = gameRole;
this.gameRoleDescription = gameRoleDescription;
this.alignment = alignment;
this.assigned = assigned;
this.out = false;
this.revealed = false;
this.hasEnteredName = false;
}
}
module.exports = Person;