Class: RPG::MapInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMapInfo


3
4
5
6
7
8
9
10
# File 'lib/rpg/map_info.rb', line 3

def initialize
  @name = ""
  @parent_id = 0
  @order = 0
  @expanded = false
  @scroll_x = 0
  @scroll_y = 0
end

Instance Attribute Details

#expandedObject

The map tree expansion flag, used internally.


22
23
24
# File 'lib/rpg/map_info.rb', line 22

def expanded
  @expanded
end

#nameObject

The map name.


13
14
15
# File 'lib/rpg/map_info.rb', line 13

def name
  @name
end

#orderObject

The map tree display order, used internally.


19
20
21
# File 'lib/rpg/map_info.rb', line 19

def order
  @order
end

#parent_idObject

The parent map ID.


16
17
18
# File 'lib/rpg/map_info.rb', line 16

def parent_id
  @parent_id
end

#scroll_xObject

The X-axis scroll position, used internally.


25
26
27
# File 'lib/rpg/map_info.rb', line 25

def scroll_x
  @scroll_x
end

#scroll_yObject

The Y-axis scroll position, used internally.


28
29
30
# File 'lib/rpg/map_info.rb', line 28

def scroll_y
  @scroll_y
end