Class: RPG::Event
- Inherits:
-
Object
- Object
- RPG::Event
- Defined in:
- lib/rpg/event.rb
Defined Under Namespace
Classes: Page
Instance Attribute Summary collapse
-
#id ⇒ Object
The event ID.
-
#name ⇒ Object
The event name.
-
#pages ⇒ Array<RPG::Event::Page>
The Events pages.
-
#x ⇒ Object
The event’s X-coordinate on the map.
-
#y ⇒ Object
The event’s Y-coordinate on the map.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Event
constructor
A new instance of Event.
Constructor Details
Instance Attribute Details
#id ⇒ Object
The event ID.
6 7 8 |
# File 'lib/rpg/event.rb', line 6 def id @id end |
#name ⇒ Object
The event name.
9 10 11 |
# File 'lib/rpg/event.rb', line 9 def name @name end |
#pages ⇒ Array<RPG::Event::Page>
The Events pages. An Page array.
19 20 21 |
# File 'lib/rpg/event.rb', line 19 def pages @pages end |
#x ⇒ Object
The event’s X-coordinate on the map.
12 13 14 |
# File 'lib/rpg/event.rb', line 12 def x @x end |
#y ⇒ Object
The event’s Y-coordinate on the map.
15 16 17 |
# File 'lib/rpg/event.rb', line 15 def y @y end |