Class: RPG::Map

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

Defined Under Namespace

Classes: Encounter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height) ⇒ Map

Returns a new instance of Map.



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/rgss3/rpg.rb', line 125

def initialize(width, height)
  @display_name = ''
  @tileset_id = 1
  @width = width
  @height = height
  @scroll_type = 0
  @specify_battleback = false
  @battleback_floor_name = ''
  @battleback_wall_name = ''
  @autoplay_bgm = false
  @bgm = RPG::BGM.new
  @autoplay_bgs = false
  @bgs = RPG::BGS.new('', 80)
  @disable_dashing = false
  @encounter_list = []
  @encounter_step = 30
  @parallax_name = ''
  @parallax_loop_x = false
  @parallax_loop_y = false
  @parallax_sx = 0
  @parallax_sy = 0
  @parallax_show = false
  @note = ''
  @data = Table.new(width, height, 4)
  @events = {}
end

Instance Attribute Details

#autoplay_bgmObject

Returns the value of attribute autoplay_bgm.



159
160
161
# File 'lib/rgss3/rpg.rb', line 159

def autoplay_bgm
  @autoplay_bgm
end

#autoplay_bgsObject

Returns the value of attribute autoplay_bgs.



161
162
163
# File 'lib/rgss3/rpg.rb', line 161

def autoplay_bgs
  @autoplay_bgs
end

#battleback1_nameObject

Returns the value of attribute battleback1_name.



157
158
159
# File 'lib/rgss3/rpg.rb', line 157

def battleback1_name
  @battleback1_name
end

#battleback2_nameObject

Returns the value of attribute battleback2_name.



158
159
160
# File 'lib/rgss3/rpg.rb', line 158

def battleback2_name
  @battleback2_name
end

#bgmObject

Returns the value of attribute bgm.



160
161
162
# File 'lib/rgss3/rpg.rb', line 160

def bgm
  @bgm
end

#bgsObject

Returns the value of attribute bgs.



162
163
164
# File 'lib/rgss3/rpg.rb', line 162

def bgs
  @bgs
end

#dataObject

Returns the value of attribute data.



173
174
175
# File 'lib/rgss3/rpg.rb', line 173

def data
  @data
end

#disable_dashingObject

Returns the value of attribute disable_dashing.



163
164
165
# File 'lib/rgss3/rpg.rb', line 163

def disable_dashing
  @disable_dashing
end

#display_nameObject

Returns the value of attribute display_name.



151
152
153
# File 'lib/rgss3/rpg.rb', line 151

def display_name
  @display_name
end

#encounter_listObject

Returns the value of attribute encounter_list.



164
165
166
# File 'lib/rgss3/rpg.rb', line 164

def encounter_list
  @encounter_list
end

#encounter_stepObject

Returns the value of attribute encounter_step.



165
166
167
# File 'lib/rgss3/rpg.rb', line 165

def encounter_step
  @encounter_step
end

#eventsObject

Returns the value of attribute events.



174
175
176
# File 'lib/rgss3/rpg.rb', line 174

def events
  @events
end

#heightObject

Returns the value of attribute height.



154
155
156
# File 'lib/rgss3/rpg.rb', line 154

def height
  @height
end

#noteObject

Returns the value of attribute note.



172
173
174
# File 'lib/rgss3/rpg.rb', line 172

def note
  @note
end

#parallax_loop_xObject

Returns the value of attribute parallax_loop_x.



167
168
169
# File 'lib/rgss3/rpg.rb', line 167

def parallax_loop_x
  @parallax_loop_x
end

#parallax_loop_yObject

Returns the value of attribute parallax_loop_y.



168
169
170
# File 'lib/rgss3/rpg.rb', line 168

def parallax_loop_y
  @parallax_loop_y
end

#parallax_nameObject

Returns the value of attribute parallax_name.



166
167
168
# File 'lib/rgss3/rpg.rb', line 166

def parallax_name
  @parallax_name
end

#parallax_showObject

Returns the value of attribute parallax_show.



171
172
173
# File 'lib/rgss3/rpg.rb', line 171

def parallax_show
  @parallax_show
end

#parallax_sxObject

Returns the value of attribute parallax_sx.



169
170
171
# File 'lib/rgss3/rpg.rb', line 169

def parallax_sx
  @parallax_sx
end

#parallax_syObject

Returns the value of attribute parallax_sy.



170
171
172
# File 'lib/rgss3/rpg.rb', line 170

def parallax_sy
  @parallax_sy
end

#scroll_typeObject

Returns the value of attribute scroll_type.



155
156
157
# File 'lib/rgss3/rpg.rb', line 155

def scroll_type
  @scroll_type
end

#specify_battlebackObject

Returns the value of attribute specify_battleback.



156
157
158
# File 'lib/rgss3/rpg.rb', line 156

def specify_battleback
  @specify_battleback
end

#tileset_idObject

Returns the value of attribute tileset_id.



152
153
154
# File 'lib/rgss3/rpg.rb', line 152

def tileset_id
  @tileset_id
end

#widthObject

Returns the value of attribute width.



153
154
155
# File 'lib/rgss3/rpg.rb', line 153

def width
  @width
end