Class: RPG::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.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.



430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/R3EXS/RGSS3.rb', line 430

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.



465
466
467
# File 'lib/R3EXS/RGSS3.rb', line 465

def autoplay_bgm
  @autoplay_bgm
end

#autoplay_bgsObject

Returns the value of attribute autoplay_bgs.



467
468
469
# File 'lib/R3EXS/RGSS3.rb', line 467

def autoplay_bgs
  @autoplay_bgs
end

#battleback1_nameObject

Returns the value of attribute battleback1_name.



463
464
465
# File 'lib/R3EXS/RGSS3.rb', line 463

def battleback1_name
  @battleback1_name
end

#battleback2_nameObject

Returns the value of attribute battleback2_name.



464
465
466
# File 'lib/R3EXS/RGSS3.rb', line 464

def battleback2_name
  @battleback2_name
end

#bgmObject

Returns the value of attribute bgm.



466
467
468
# File 'lib/R3EXS/RGSS3.rb', line 466

def bgm
  @bgm
end

#bgsObject

Returns the value of attribute bgs.



468
469
470
# File 'lib/R3EXS/RGSS3.rb', line 468

def bgs
  @bgs
end

#dataObject

Returns the value of attribute data.



479
480
481
# File 'lib/R3EXS/RGSS3.rb', line 479

def data
  @data
end

#disable_dashingObject

Returns the value of attribute disable_dashing.



469
470
471
# File 'lib/R3EXS/RGSS3.rb', line 469

def disable_dashing
  @disable_dashing
end

#display_nameObject

Returns the value of attribute display_name.



457
458
459
# File 'lib/R3EXS/RGSS3.rb', line 457

def display_name
  @display_name
end

#encounter_listObject

Returns the value of attribute encounter_list.



470
471
472
# File 'lib/R3EXS/RGSS3.rb', line 470

def encounter_list
  @encounter_list
end

#encounter_stepObject

Returns the value of attribute encounter_step.



471
472
473
# File 'lib/R3EXS/RGSS3.rb', line 471

def encounter_step
  @encounter_step
end

#eventsObject

Returns the value of attribute events.



480
481
482
# File 'lib/R3EXS/RGSS3.rb', line 480

def events
  @events
end

#heightObject

Returns the value of attribute height.



460
461
462
# File 'lib/R3EXS/RGSS3.rb', line 460

def height
  @height
end

#noteObject

Returns the value of attribute note.



478
479
480
# File 'lib/R3EXS/RGSS3.rb', line 478

def note
  @note
end

#parallax_loop_xObject

Returns the value of attribute parallax_loop_x.



473
474
475
# File 'lib/R3EXS/RGSS3.rb', line 473

def parallax_loop_x
  @parallax_loop_x
end

#parallax_loop_yObject

Returns the value of attribute parallax_loop_y.



474
475
476
# File 'lib/R3EXS/RGSS3.rb', line 474

def parallax_loop_y
  @parallax_loop_y
end

#parallax_nameObject

Returns the value of attribute parallax_name.



472
473
474
# File 'lib/R3EXS/RGSS3.rb', line 472

def parallax_name
  @parallax_name
end

#parallax_showObject

Returns the value of attribute parallax_show.



477
478
479
# File 'lib/R3EXS/RGSS3.rb', line 477

def parallax_show
  @parallax_show
end

#parallax_sxObject

Returns the value of attribute parallax_sx.



475
476
477
# File 'lib/R3EXS/RGSS3.rb', line 475

def parallax_sx
  @parallax_sx
end

#parallax_syObject

Returns the value of attribute parallax_sy.



476
477
478
# File 'lib/R3EXS/RGSS3.rb', line 476

def parallax_sy
  @parallax_sy
end

#scroll_typeObject

Returns the value of attribute scroll_type.



461
462
463
# File 'lib/R3EXS/RGSS3.rb', line 461

def scroll_type
  @scroll_type
end

#specify_battlebackObject

Returns the value of attribute specify_battleback.



462
463
464
# File 'lib/R3EXS/RGSS3.rb', line 462

def specify_battleback
  @specify_battleback
end

#tileset_idObject

Returns the value of attribute tileset_id.



458
459
460
# File 'lib/R3EXS/RGSS3.rb', line 458

def tileset_id
  @tileset_id
end

#widthObject

Returns the value of attribute width.



459
460
461
# File 'lib/R3EXS/RGSS3.rb', line 459

def width
  @width
end