Class: RPG::MapInfo
- Inherits:
-
Object
- Object
- RPG::MapInfo
- Defined in:
- lib/rpg/map_info.rb
Instance Attribute Summary collapse
-
#expanded ⇒ Object
The map tree expansion flag, used internally.
-
#name ⇒ Object
The map name.
-
#order ⇒ Object
The map tree display order, used internally.
-
#parent_id ⇒ Object
The parent map ID.
-
#scroll_x ⇒ Object
The X-axis scroll position, used internally.
-
#scroll_y ⇒ Object
The Y-axis scroll position, used internally.
Instance Method Summary collapse
-
#initialize ⇒ MapInfo
constructor
A new instance of MapInfo.
Constructor Details
#initialize ⇒ MapInfo
Returns a new instance of MapInfo.
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
#expanded ⇒ Object
The map tree expansion flag, used internally.
22 23 24 |
# File 'lib/rpg/map_info.rb', line 22 def @expanded end |
#name ⇒ Object
The map name.
13 14 15 |
# File 'lib/rpg/map_info.rb', line 13 def name @name end |
#order ⇒ Object
The map tree display order, used internally.
19 20 21 |
# File 'lib/rpg/map_info.rb', line 19 def order @order end |
#parent_id ⇒ Object
The parent map ID.
16 17 18 |
# File 'lib/rpg/map_info.rb', line 16 def parent_id @parent_id end |
#scroll_x ⇒ Object
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_y ⇒ Object
The Y-axis scroll position, used internally.
28 29 30 |
# File 'lib/rpg/map_info.rb', line 28 def scroll_y @scroll_y end |