Untitled

 avatar
unknown
plain_text
a year ago
565 B
4
Indexable
import { EnergyType } from '../Energy';

abstract class Archetype {
  private _name: string;
  private _cost: number;
  private _special: number;

  constructor(name: string) {
    this._name = name;
    this._cost = 0;
    this._special = 0;
  }

  get name(): string {
    return this.name;
  }

  get cost(): number {
    return this.cost;
  }

  get special(): number {
    return this.special;
  }

  static createdArchetypeInstances(): number {
    throw new Error('Not implemented');
  }

  abstract get energyType(): EnergyType;
}

export default Archetype;
Editor is loading...
Leave a Comment