drashland/wocket

Room class

crookse opened this issue · 1 comments

This is depended on by #10

Create the following class:

class Room {
  protected is_private: boolean;
  protected name: string;
  constructor(name: string, isPrivate: boolean = false) {
    this.name = name;
    this.is_private = isPrivate;
  }
  public close() { ... }
  public rename() { ... }
  public makePrivate() { ... }
  public makePublic() { ... }
  ...
  ...
  ...
}

this is no longer needed. we have channels now from the restructure (#13)