Class: RPG::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Defined Under Namespace

Classes: Page

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Event

Returns a new instance of Event.



514
515
516
517
518
519
520
# File 'lib/R3EXS/RGSS3.rb', line 514

def initialize(x, y)
    @id    = 0
    @name  = ''
    @x     = x
    @y     = y
    @pages = [RPG::Event::Page.new]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



522
523
524
# File 'lib/R3EXS/RGSS3.rb', line 522

def id
  @id
end

#nameObject

Returns the value of attribute name.



523
524
525
# File 'lib/R3EXS/RGSS3.rb', line 523

def name
  @name
end

#pagesObject

Returns the value of attribute pages.



526
527
528
# File 'lib/R3EXS/RGSS3.rb', line 526

def pages
  @pages
end

#xObject

Returns the value of attribute x.



524
525
526
# File 'lib/R3EXS/RGSS3.rb', line 524

def x
  @x
end

#yObject

Returns the value of attribute y.



525
526
527
# File 'lib/R3EXS/RGSS3.rb', line 525

def y
  @y
end