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

- (Encounter) initialize

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

- (Object) region_set

Returns the value of attribute region_set



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

def region_set
  @region_set
end

- (Object) troop_id

Returns the value of attribute troop_id



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

def troop_id
  @troop_id
end

- (Object) weight

Returns the value of attribute weight



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

def weight
  @weight
end