Class: RPG::Map
- Inherits:
-
Object
- Object
- RPG::Map
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/map.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map_encounter.rb
Overview
The data class for maps.
Defined Under Namespace
Classes: Encounter
Instance Attribute Summary collapse
-
#autoplay_bgm ⇒ Object
Returns the value of attribute autoplay_bgm.
-
#autoplay_bgs ⇒ Object
Returns the value of attribute autoplay_bgs.
-
#battleback1_name ⇒ Object
Returns the value of attribute battleback1_name.
-
#battleback2_name ⇒ Object
Returns the value of attribute battleback2_name.
-
#bgm ⇒ Object
Returns the value of attribute bgm.
-
#bgs ⇒ Object
Returns the value of attribute bgs.
-
#data ⇒ Object
Returns the value of attribute data.
-
#disable_dashing ⇒ Object
Returns the value of attribute disable_dashing.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#encounter_list ⇒ Object
Returns the value of attribute encounter_list.
-
#encounter_step ⇒ Object
Returns the value of attribute encounter_step.
-
#events ⇒ Object
Returns the value of attribute events.
-
#height ⇒ Object
Returns the value of attribute height.
-
#note ⇒ Object
Returns the value of attribute note.
-
#parallax_loop_x ⇒ Object
Returns the value of attribute parallax_loop_x.
-
#parallax_loop_y ⇒ Object
Returns the value of attribute parallax_loop_y.
-
#parallax_name ⇒ Object
Returns the value of attribute parallax_name.
-
#parallax_show ⇒ Object
Returns the value of attribute parallax_show.
-
#parallax_sx ⇒ Object
Returns the value of attribute parallax_sx.
-
#parallax_sy ⇒ Object
Returns the value of attribute parallax_sy.
-
#scroll_type ⇒ Object
Returns the value of attribute scroll_type.
-
#specify_battleback ⇒ Object
Returns the value of attribute specify_battleback.
-
#tileset_id ⇒ Object
Returns the value of attribute tileset_id.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
-
.json_new(*args) ⇒ Object
JSON constructor.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Map
constructor
A new instance of Map.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize(width, height) ⇒ Map
Returns a new instance of Map.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 11 def initialize(width, height) @width = width @height = height @scroll_type = 0 @autoplay_bgm = false @bgm = RPG::AudioFile.new @autoplay_bgs = false @bgs = RPG::AudioFile.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 @data = Table.new(width, height, 3) @events = {} end |
Instance Attribute Details
#autoplay_bgm ⇒ Object
Returns the value of attribute autoplay_bgm.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def autoplay_bgm @autoplay_bgm end |
#autoplay_bgs ⇒ Object
Returns the value of attribute autoplay_bgs.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def autoplay_bgs @autoplay_bgs end |
#battleback1_name ⇒ Object
Returns the value of attribute battleback1_name.
53 54 55 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 53 def battleback1_name @battleback1_name end |
#battleback2_name ⇒ Object
Returns the value of attribute battleback2_name.
53 54 55 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 53 def battleback2_name @battleback2_name end |
#bgm ⇒ Object
Returns the value of attribute bgm.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def bgm @bgm end |
#bgs ⇒ Object
Returns the value of attribute bgs.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def bgs @bgs end |
#data ⇒ Object
Returns the value of attribute data.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def data @data end |
#disable_dashing ⇒ Object
Returns the value of attribute disable_dashing.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def disable_dashing @disable_dashing end |
#display_name ⇒ Object
Returns the value of attribute display_name.
53 54 55 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 53 def display_name @display_name end |
#encounter_list ⇒ Object
Returns the value of attribute encounter_list.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def encounter_list @encounter_list end |
#encounter_step ⇒ Object
Returns the value of attribute encounter_step.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def encounter_step @encounter_step end |
#events ⇒ Object
Returns the value of attribute events.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def events @events end |
#height ⇒ Object
Returns the value of attribute height.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def height @height end |
#note ⇒ Object
Returns the value of attribute note.
53 54 55 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 53 def note @note end |
#parallax_loop_x ⇒ Object
Returns the value of attribute parallax_loop_x.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_loop_x @parallax_loop_x end |
#parallax_loop_y ⇒ Object
Returns the value of attribute parallax_loop_y.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_loop_y @parallax_loop_y end |
#parallax_name ⇒ Object
Returns the value of attribute parallax_name.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_name @parallax_name end |
#parallax_show ⇒ Object
Returns the value of attribute parallax_show.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_show @parallax_show end |
#parallax_sx ⇒ Object
Returns the value of attribute parallax_sx.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_sx @parallax_sx end |
#parallax_sy ⇒ Object
Returns the value of attribute parallax_sy.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def parallax_sy @parallax_sy end |
#scroll_type ⇒ Object
Returns the value of attribute scroll_type.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def scroll_type @scroll_type end |
#specify_battleback ⇒ Object
Returns the value of attribute specify_battleback.
53 54 55 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 53 def specify_battleback @specify_battleback end |
#tileset_id ⇒ Object
Returns the value of attribute tileset_id.
36 37 38 |
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/map.rb', line 36 def tileset_id @tileset_id end |
#width ⇒ Object
Returns the value of attribute width.
43 44 45 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 43 def width @width end |
Class Method Details
.json_new(*args) ⇒ Object
JSON constructor
39 40 41 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/map.rb', line 39 def self.json_new(*args) new(-1, -1) end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/map.rb', line 38 def to_s @display_name.to_s end |