Class: RPG::CommonEvent
- Inherits:
-
Object
- Object
- RPG::CommonEvent
- Defined in:
- lib/rpg/common_event.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
The event ID.
-
#list ⇒ Array<RPG::EventCommand>
List of event commands.
-
#name ⇒ Object
The event name.
-
#switch_id ⇒ Object
The condition switch ID.
-
#trigger ⇒ Object
- The event trigger: 0
- none 1
- autorun 2
-
parallel.
Instance Method Summary collapse
-
#initialize ⇒ CommonEvent
constructor
A new instance of CommonEvent.
Constructor Details
#initialize ⇒ CommonEvent
Returns a new instance of CommonEvent.
6 7 8 9 10 11 12 |
# File 'lib/rpg/common_event.rb', line 6 def initialize @id = 0 @name = "" @trigger = 0 @switch_id = 1 @list = [RPG::EventCommand.new] end |
Instance Attribute Details
#id ⇒ Object
The event ID.
15 16 17 |
# File 'lib/rpg/common_event.rb', line 15 def id @id end |
#list ⇒ Array<RPG::EventCommand>
List of event commands. An EventCommand array.
31 32 33 |
# File 'lib/rpg/common_event.rb', line 31 def list @list end |
#name ⇒ Object
The event name.
18 19 20 |
# File 'lib/rpg/common_event.rb', line 18 def name @name end |
#switch_id ⇒ Object
The condition switch ID.
27 28 29 |
# File 'lib/rpg/common_event.rb', line 27 def switch_id @switch_id end |
#trigger ⇒ Object
The event trigger:
- 0
-
none
- 1
-
autorun
- 2
-
parallel
24 25 26 |
# File 'lib/rpg/common_event.rb', line 24 def trigger @trigger end |