partey_workadventure/back/src/Model/User.ts

24 lines
602 B
TypeScript
Raw Normal View History

2020-09-16 16:06:43 +02:00
import { Group } from "./Group";
import { PointInterface } from "./Websocket/PointInterface";
import {Zone} from "_Model/Zone";
import {Movable} from "_Model/Movable";
import {PositionInterface} from "_Model/PositionInterface";
export class User implements Movable {
public listenedZones: Set<Zone>;
public group?: Group;
public constructor(
public id: number,
2020-09-16 16:06:43 +02:00
public position: PointInterface,
public silent: boolean,
) {
this.listenedZones = new Set<Zone>();
}
public getPosition(): PositionInterface {
return this.position;
}
}