Class: RPG::Map::Encounter
- Inherits:
-
Object
- Object
- RPG::Map::Encounter
- Defined in:
- lib/rgss3/rpg.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.
178 179 180 181 182 |
# File 'lib/rgss3/rpg.rb', line 178 def initialize @troop_id = 1 @weight = 10 @region_set = [] end |
Instance Attribute Details
#region_set ⇒ Object
Returns the value of attribute region_set.
185 186 187 |
# File 'lib/rgss3/rpg.rb', line 185 def region_set @region_set end |
#troop_id ⇒ Object
Returns the value of attribute troop_id.
183 184 185 |
# File 'lib/rgss3/rpg.rb', line 183 def troop_id @troop_id end |
#weight ⇒ Object
Returns the value of attribute weight.
184 185 186 |
# File 'lib/rgss3/rpg.rb', line 184 def weight @weight end |