Class: RPG::Map::Encounter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEncounter

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_setObject

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_idObject

Returns the value of attribute troop_id.



9
10
11
# File 'lib/rpg/map/encounter.rb', line 9

def troop_id
  @troop_id
end

#weightObject

Returns the value of attribute weight.



10
11
12
# File 'lib/rpg/map/encounter.rb', line 10

def weight
  @weight
end