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.



492
493
494
495
496
497
498
# File 'lib/R3EXS/RGSS3.rb', line 492

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.



500
501
502
# File 'lib/R3EXS/RGSS3.rb', line 500

def id
  @id
end

#nameObject

Returns the value of attribute name.



501
502
503
# File 'lib/R3EXS/RGSS3.rb', line 501

def name
  @name
end

#pagesObject

Returns the value of attribute pages.



504
505
506
# File 'lib/R3EXS/RGSS3.rb', line 504

def pages
  @pages
end

#xObject

Returns the value of attribute x.



502
503
504
# File 'lib/R3EXS/RGSS3.rb', line 502

def x
  @x
end

#yObject

Returns the value of attribute y.



503
504
505
# File 'lib/R3EXS/RGSS3.rb', line 503

def y
  @y
end