Class: RPG::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/event.rb,
lib/rpg/event/page.rb,
lib/rpg/event/page/graphic.rb,
lib/rpg/event/page/condition.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.



3
4
5
6
7
8
9
# File 'lib/rpg/event.rb', line 3

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.



10
11
12
# File 'lib/rpg/event.rb', line 10

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/rpg/event.rb', line 11

def name
  @name
end

#pagesObject

Returns the value of attribute pages.



14
15
16
# File 'lib/rpg/event.rb', line 14

def pages
  @pages
end

#xObject

Returns the value of attribute x.



12
13
14
# File 'lib/rpg/event.rb', line 12

def x
  @x
end

#yObject

Returns the value of attribute y.



13
14
15
# File 'lib/rpg/event.rb', line 13

def y
  @y
end