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.



408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/R3EXS/RGSS3.rb', line 408

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.



443
444
445
# File 'lib/R3EXS/RGSS3.rb', line 443

def autoplay_bgm
  @autoplay_bgm
end

#autoplay_bgsObject

Returns the value of attribute autoplay_bgs.



445
446
447
# File 'lib/R3EXS/RGSS3.rb', line 445

def autoplay_bgs
  @autoplay_bgs
end

#battleback1_nameObject

Returns the value of attribute battleback1_name.



441
442
443
# File 'lib/R3EXS/RGSS3.rb', line 441

def battleback1_name
  @battleback1_name
end

#battleback2_nameObject

Returns the value of attribute battleback2_name.



442
443
444
# File 'lib/R3EXS/RGSS3.rb', line 442

def battleback2_name
  @battleback2_name
end

#bgmObject

Returns the value of attribute bgm.



444
445
446
# File 'lib/R3EXS/RGSS3.rb', line 444

def bgm
  @bgm
end

#bgsObject

Returns the value of attribute bgs.



446
447
448
# File 'lib/R3EXS/RGSS3.rb', line 446

def bgs
  @bgs
end

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#disable_dashingObject

Returns the value of attribute disable_dashing.



447
448
449
# File 'lib/R3EXS/RGSS3.rb', line 447

def disable_dashing
  @disable_dashing
end

#display_nameObject

Returns the value of attribute display_name.



435
436
437
# File 'lib/R3EXS/RGSS3.rb', line 435

def display_name
  @display_name
end

#encounter_listObject

Returns the value of attribute encounter_list.



448
449
450
# File 'lib/R3EXS/RGSS3.rb', line 448

def encounter_list
  @encounter_list
end

#encounter_stepObject

Returns the value of attribute encounter_step.



449
450
451
# File 'lib/R3EXS/RGSS3.rb', line 449

def encounter_step
  @encounter_step
end

#eventsObject

Returns the value of attribute events.



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

def events
  @events
end

#heightObject

Returns the value of attribute height.



438
439
440
# File 'lib/R3EXS/RGSS3.rb', line 438

def height
  @height
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#parallax_loop_xObject

Returns the value of attribute parallax_loop_x.



451
452
453
# File 'lib/R3EXS/RGSS3.rb', line 451

def parallax_loop_x
  @parallax_loop_x
end

#parallax_loop_yObject

Returns the value of attribute parallax_loop_y.



452
453
454
# File 'lib/R3EXS/RGSS3.rb', line 452

def parallax_loop_y
  @parallax_loop_y
end

#parallax_nameObject

Returns the value of attribute parallax_name.



450
451
452
# File 'lib/R3EXS/RGSS3.rb', line 450

def parallax_name
  @parallax_name
end

#parallax_showObject

Returns the value of attribute parallax_show.



455
456
457
# File 'lib/R3EXS/RGSS3.rb', line 455

def parallax_show
  @parallax_show
end

#parallax_sxObject

Returns the value of attribute parallax_sx.



453
454
455
# File 'lib/R3EXS/RGSS3.rb', line 453

def parallax_sx
  @parallax_sx
end

#parallax_syObject

Returns the value of attribute parallax_sy.



454
455
456
# File 'lib/R3EXS/RGSS3.rb', line 454

def parallax_sy
  @parallax_sy
end

#scroll_typeObject

Returns the value of attribute scroll_type.



439
440
441
# File 'lib/R3EXS/RGSS3.rb', line 439

def scroll_type
  @scroll_type
end

#specify_battlebackObject

Returns the value of attribute specify_battleback.



440
441
442
# File 'lib/R3EXS/RGSS3.rb', line 440

def specify_battleback
  @specify_battleback
end

#tileset_idObject

Returns the value of attribute tileset_id.



436
437
438
# File 'lib/R3EXS/RGSS3.rb', line 436

def tileset_id
  @tileset_id
end

#widthObject

Returns the value of attribute width.



437
438
439
# File 'lib/R3EXS/RGSS3.rb', line 437

def width
  @width
end