Module: Lich::Gemstone::Creature

Defined in:
documented/gemstone/creature.rb

Class Method Summary collapse

Class Method Details

.[](id) ⇒ Object



562
563
564
# File 'documented/gemstone/creature.rb', line 562

def self.[](id)
  CreatureInstance[id]
end

.allObject



599
600
601
# File 'documented/gemstone/creature.rb', line 599

def self.all
  CreatureInstance.all
end

.cleanup_old(**options) ⇒ Object



587
588
589
# File 'documented/gemstone/creature.rb', line 587

def self.cleanup_old(**options)
  CreatureInstance.cleanup_old(**options)
end

.clearObject



583
584
585
# File 'documented/gemstone/creature.rb', line 583

def self.clear
  CreatureInstance.clear
end

.configure(**options) ⇒ Object



570
571
572
# File 'documented/gemstone/creature.rb', line 570

def self.configure(**options)
  CreatureInstance.configure(**options)
end

.damage_report(**options) ⇒ Object



591
592
593
# File 'documented/gemstone/creature.rb', line 591

def self.damage_report(**options)
  CreatureInstance.damage_report(**options)
end


595
596
597
# File 'documented/gemstone/creature.rb', line 595

def self.print_damage_report(**options)
  CreatureInstance.print_damage_report(**options)
end

.register(name, id, noun = nil) ⇒ Object



566
567
568
# File 'documented/gemstone/creature.rb', line 566

def self.register(name, id, noun = nil)
  CreatureInstance.register(name, id, noun)
end

.statsObject



574
575
576
577
578
579
580
581
# File 'documented/gemstone/creature.rb', line 574

def self.stats
  {
    instances: CreatureInstance.size,
    templates: CreatureTemplate.all.size,
    max_size: CreatureInstance.class_variable_get(:@@max_size),
    auto_register: CreatureInstance.auto_register?
  }
end