Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
566 B
1
Indexable
Never
import Archetype from './Archetype';
import { EnergyType } from '../Energy';

class Ranger extends Archetype {
  private _energyType: EnergyType;
  static _createdArchetypeInstances = 0;

  constructor(name: string) {
    super(name);
    this._energyType = 'stamina';
    Ranger._createdArchetypeInstances += 1;
  }

  get energyType(): EnergyType {
    return this._energyType;
  }

  static createdArchetypeInstances(): number {
    return Ranger._createdArchetypeInstances;
  }

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

export default Ranger;
Leave a Comment