Class: RPG::Event

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



208
209
210
211
212
213
214
# File 'lib/rgss3/rpg.rb', line 208

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.



215
216
217
# File 'lib/rgss3/rpg.rb', line 215

def id
  @id
end

#nameObject

Returns the value of attribute name.



216
217
218
# File 'lib/rgss3/rpg.rb', line 216

def name
  @name
end

#pagesObject

Returns the value of attribute pages.



219
220
221
# File 'lib/rgss3/rpg.rb', line 219

def pages
  @pages
end

#xObject

Returns the value of attribute x.



217
218
219
# File 'lib/rgss3/rpg.rb', line 217

def x
  @x
end

#yObject

Returns the value of attribute y.



218
219
220
# File 'lib/rgss3/rpg.rb', line 218

def y
  @y
end