Class: RPG::Map::Encounter

Inherits:
Object
  • Object
show all
Defined in:
lib/rgss3/rpg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncounter

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_setObject

Returns the value of attribute region_set.



185
186
187
# File 'lib/rgss3/rpg.rb', line 185

def region_set
  @region_set
end

#troop_idObject

Returns the value of attribute troop_id.



183
184
185
# File 'lib/rgss3/rpg.rb', line 183

def troop_id
  @troop_id
end

#weightObject

Returns the value of attribute weight.



184
185
186
# File 'lib/rgss3/rpg.rb', line 184

def weight
  @weight
end