Data class for maps.
Tileset ID to be used in the map.
The map width.
The map height.
Truth-value of whether BGM autoswitching is enabled.
If BGM autoswitching is enabled, the name of that BGM (RPG::AudioFile).
Truth-value of whether BGS autoswitching is enabled.
If BGS autoswitching is enabled, the name of that BGS (RPG::AudioFile).
Encounter list. A troop ID array.
Number of steps between encounters.
The map data. A 3-dimensional tile ID array (Table).
Map events. A hash that represents RPG::Event instances as values, using event IDs as the keys.
module RPG class Map 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) @events = {} end attr_accessor :tileset_id attr_accessor :width attr_accessor :height attr_accessor :autoplay_bgm attr_accessor :bgm attr_accessor :autoplay_bgs attr_accessor :bgs attr_accessor :encounter_list attr_accessor :encounter_step attr_accessor :data attr_accessor :events end end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |