Class: RPG::Map::Encounter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeEncounter

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_setObject

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_idObject

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

#weightObject

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