Class: Studio::Group::Encounter::LevelSetup
Overview
Data class helping to know the level setup of a creature while picking its level from group
Instance Attribute Summary collapse
-
#range ⇒ Range
readonly
Get the level range (to give to a rand function) to get the final level of the creature.
Instance Method Summary collapse
-
#initialize(hash) ⇒ LevelSetup
constructor
Create a new level setup.
-
#repel_rejected(actor_level) ⇒ Boolean
Tell if that level setup makes the encounter rejected by repel.
-
#strong_selected(actor_level) ⇒ Boolean
Tell if that level setup makes the encounter being selected because actor is weaker.
Constructor Details
#initialize(hash) ⇒ LevelSetup
Create a new level setup
339 340 |
# File 'docs/3_Studio.rb', line 339 def initialize(hash) end |
Instance Attribute Details
#range ⇒ Range (readonly)
Get the level range (to give to a rand function) to get the final level of the creature
336 337 338 |
# File 'docs/3_Studio.rb', line 336 def range @range end |
Instance Method Details
#repel_rejected(actor_level) ⇒ Boolean
Tell if that level setup makes the encounter rejected by repel
344 345 |
# File 'docs/3_Studio.rb', line 344 def repel_rejected(actor_level) end |
#strong_selected(actor_level) ⇒ Boolean
Tell if that level setup makes the encounter being selected because actor is weaker
349 350 |
# File 'docs/3_Studio.rb', line 349 def strong_selected(actor_level) end |