models/encounter.js

import Model from "./model.js";

/**
 * A collection of people, animals, robots, machines that make up some kind of encounter.
 */
export class Encounter extends Model {
  constructor(params) {
    super(params);
    this.description = params.description;
    this.members = params.members; // these are companions
    this._class = "Encounter";
  }
  toString() {
    return this.description;
  }
  toTitleString() {
    return "Encounter";
  }
  getDisplayProps() {
    return {};
  }
  toDetailHtml() {
    return this.description;
  }
}