Class: RPG::Map::Encounter
- Inherits:
-
Object
- Object
- RPG::Map::Encounter
- Defined in:
- lib/rpg/map/encounter.rb
Instance Attribute Summary collapse
-
#region_set ⇒ Object
Returns the value of attribute region_set.
-
#troop_id ⇒ Object
Returns the value of attribute troop_id.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize ⇒ Encounter
constructor
A new instance of Encounter.
Constructor Details
#initialize ⇒ Encounter
Returns a new instance of Encounter.
4 5 6 7 8 |
# File 'lib/rpg/map/encounter.rb', line 4 def initialize @troop_id = 1 @weight = 10 @region_set = [] end |
Instance Attribute Details
#region_set ⇒ Object
Returns the value of attribute region_set.
11 12 13 |
# File 'lib/rpg/map/encounter.rb', line 11 def region_set @region_set end |
#troop_id ⇒ Object
Returns the value of attribute troop_id.
9 10 11 |
# File 'lib/rpg/map/encounter.rb', line 9 def troop_id @troop_id end |
#weight ⇒ Object
Returns the value of attribute weight.
10 11 12 |
# File 'lib/rpg/map/encounter.rb', line 10 def weight @weight end |