Class: RPG::MapInfo

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/map_info.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_info.rb

Overview

The data class for map information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeMapInfo

Returns a new instance of MapInfo.



11
12
13
14
15
16
17
18
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 11

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

Instance Attribute Details

#expandedObject

Returns the value of attribute expanded.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def expanded
  @expanded
end

#nameObject

Returns the value of attribute name.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def name
  @name
end

#orderObject

Returns the value of attribute order.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def order
  @order
end

#parent_idObject

Returns the value of attribute parent_id.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def parent_id
  @parent_id
end

#scroll_xObject

Returns the value of attribute scroll_x.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def scroll_x
  @scroll_x
end

#scroll_yObject

Returns the value of attribute scroll_y.



24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 24

def scroll_y
  @scroll_y
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map_info.rb', line 20

def to_s
  @name.to_s
end