Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
565 B
0
Indexable
Never
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;
Leave a Comment