Class: RPG::Event
- Inherits:
-
Object
- Object
- RPG::Event
- 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)
-
- (Object) id
Returns the value of attribute id.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) pages
Returns the value of attribute pages.
-
- (Object) x
Returns the value of attribute x.
-
- (Object) y
Returns the value of attribute y.
Instance Method Summary (collapse)
-
- (Event) initialize(x, y)
constructor
A new instance of Event.
Constructor Details
- (Event) initialize(x, y)
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
- (Object) id
Returns the value of attribute id
10 11 12 |
# File 'lib/rpg/event.rb', line 10 def id @id end |
- (Object) name
Returns the value of attribute name
11 12 13 |
# File 'lib/rpg/event.rb', line 11 def name @name end |
- (Object) pages
Returns the value of attribute pages
14 15 16 |
# File 'lib/rpg/event.rb', line 14 def pages @pages end |
- (Object) x
Returns the value of attribute x
12 13 14 |
# File 'lib/rpg/event.rb', line 12 def x @x end |
- (Object) y
Returns the value of attribute y
13 14 15 |
# File 'lib/rpg/event.rb', line 13 def y @y end |