serveur de jeu - work in progress
This commit is contained in:
23
jeu/src/server/class/Client.js
Normal file
23
jeu/src/server/class/Client.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import * as ev from "../../shared_js/class/Event.js";
|
||||
export class Client {
|
||||
constructor(socket, id) {
|
||||
this.isAlive = true;
|
||||
this.gameSession = null;
|
||||
this.socket = socket;
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
export class ClientPlayer extends Client {
|
||||
constructor(socket, id, racket) {
|
||||
super(socket, id);
|
||||
this.matchOptions = 0;
|
||||
this.inputBuffer = new ev.EventInput();
|
||||
this.lastInputId = 0;
|
||||
this.racket = racket;
|
||||
}
|
||||
}
|
||||
export class ClientSpectator extends Client {
|
||||
constructor(socket, id) {
|
||||
super(socket, id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user