Class: RPG::Map
- Defined in:
- scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb
Instance Attribute Summary collapse
-
#autoplay_bgm
Returns the value of attribute autoplay_bgm.
-
#autoplay_bgs
Returns the value of attribute autoplay_bgs.
-
#bgm
Returns the value of attribute bgm.
-
#bgs
Returns the value of attribute bgs.
-
#data
Returns the value of attribute data.
-
#encounter_list
Returns the value of attribute encounter_list.
-
#encounter_step
Returns the value of attribute encounter_step.
-
#events
Returns the value of attribute events.
-
#height
Returns the value of attribute height.
-
#tileset_id
Returns the value of attribute tileset_id.
-
#width
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(width, height) ⇒ Map
Returns a new instance of Map.
134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 134 def initialize(width, height) @tileset_id = 1 @width = width @height = height @autoplay_bgm = false @bgm = RPG::AudioFile.new @autoplay_bgs = false @bgs = RPG::AudioFile.new("", 80) @encounter_list = [] @encounter_step = 30 @data = Table.new(width, height, 3) @data.fill(0) @events = {} end |
Instance Attribute Details
#autoplay_bgm
Returns the value of attribute autoplay_bgm.
151 152 153 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 151 def autoplay_bgm @autoplay_bgm end |
#autoplay_bgs
Returns the value of attribute autoplay_bgs.
153 154 155 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 153 def autoplay_bgs @autoplay_bgs end |
#bgm
Returns the value of attribute bgm.
152 153 154 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 152 def bgm @bgm end |
#bgs
Returns the value of attribute bgs.
154 155 156 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 154 def bgs @bgs end |
#data
Returns the value of attribute data.
157 158 159 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 157 def data @data end |
#encounter_list
Returns the value of attribute encounter_list.
155 156 157 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 155 def encounter_list @encounter_list end |
#encounter_step
Returns the value of attribute encounter_step.
156 157 158 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 156 def encounter_step @encounter_step end |
#events
Returns the value of attribute events.
158 159 160 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 158 def events @events end |
#height
Returns the value of attribute height.
150 151 152 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 150 def height @height end |
#tileset_id
Returns the value of attribute tileset_id.
148 149 150 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 148 def tileset_id @tileset_id end |
#width
Returns the value of attribute width.
149 150 151 |
# File 'scripts/00000 Dependencies/00001 LiteRGSS2/99999 RMXP_DATA.rb', line 149 def width @width end |