Class: RPG::MapInfo
- Inherits:
-
Object
- Object
- RPG::MapInfo
- Defined in:
- lib/rpg/map_info.rb
Instance Attribute Summary collapse
-
#expanded ⇒ Object
Returns the value of attribute expanded.
-
#name ⇒ Object
Returns the value of attribute name.
-
#order ⇒ Object
Returns the value of attribute order.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#scroll_x ⇒ Object
Returns the value of attribute scroll_x.
-
#scroll_y ⇒ Object
Returns the value of attribute scroll_y.
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
Returns the value of attribute expanded.
14 15 16 |
# File 'lib/rpg/map_info.rb', line 14 def @expanded end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/rpg/map_info.rb', line 11 def name @name end |
#order ⇒ Object
Returns the value of attribute order.
13 14 15 |
# File 'lib/rpg/map_info.rb', line 13 def order @order end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
12 13 14 |
# File 'lib/rpg/map_info.rb', line 12 def parent_id @parent_id end |
#scroll_x ⇒ Object
Returns the value of attribute scroll_x.
15 16 17 |
# File 'lib/rpg/map_info.rb', line 15 def scroll_x @scroll_x end |
#scroll_y ⇒ Object
Returns the value of attribute scroll_y.
16 17 18 |
# File 'lib/rpg/map_info.rb', line 16 def scroll_y @scroll_y end |