Module: Lich::Gemstone::Creature
- Defined in:
- documented/gemstone/creature.rb
Class Method Summary collapse
- .[](id) ⇒ Object
- .all ⇒ Object
- .cleanup_old(**options) ⇒ Object
- .clear ⇒ Object
- .configure(**options) ⇒ Object
- .damage_report(**options) ⇒ Object
- .print_damage_report(**options) ⇒ Object
- .register(name, id, noun = nil) ⇒ Object
- .stats ⇒ Object
Class Method Details
.[](id) ⇒ Object
562 563 564 |
# File 'documented/gemstone/creature.rb', line 562 def self.[](id) CreatureInstance[id] end |
.all ⇒ Object
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(**) CreatureInstance.cleanup_old(**) end |
.clear ⇒ Object
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(**) CreatureInstance.configure(**) end |
.damage_report(**options) ⇒ Object
591 592 593 |
# File 'documented/gemstone/creature.rb', line 591 def self.damage_report(**) CreatureInstance.damage_report(**) end |
.print_damage_report(**options) ⇒ Object
595 596 597 |
# File 'documented/gemstone/creature.rb', line 595 def self.print_damage_report(**) CreatureInstance.print_damage_report(**) 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 |
.stats ⇒ Object
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 |