Class: RPG::Map::Encounter
- Inherits:
-
Object
- Object
- RPG::Map::Encounter
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb
Overview
The data class for the encounter settings.
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.
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ Encounter
Returns a new instance of Encounter.
15 16 17 18 19 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb', line 15 def initialize @troop_id = 1 @weight = 10 @region_set = [] end |
Instance Attribute Details
#region_set ⇒ Object
Returns the value of attribute region_set.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb', line 20 def region_set @region_set end |
#troop_id ⇒ Object
Returns the value of attribute troop_id.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb', line 20 def troop_id @troop_id end |
#weight ⇒ Object
Returns the value of attribute weight.
20 21 22 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb', line 20 def weight @weight end |