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(
|
2020-09-18 13:57:38 +02:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|