Class: RPG::CommonEvent
- Inherits:
-
Object
- Object
- RPG::CommonEvent
- Defined in:
- lib/rgss3/rpg.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#list ⇒ Object
Returns the value of attribute list.
-
#name ⇒ Object
Returns the value of attribute name.
-
#switch_id ⇒ Object
Returns the value of attribute switch_id.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
Instance Method Summary collapse
- #autorun? ⇒ Boolean
-
#initialize ⇒ CommonEvent
constructor
A new instance of CommonEvent.
- #parallel? ⇒ Boolean
Constructor Details
#initialize ⇒ CommonEvent
Returns a new instance of CommonEvent.
338 339 340 341 342 343 344 |
# File 'lib/rgss3/rpg.rb', line 338 def initialize @id = 0 @name = '' @trigger = 0 @switch_id = 1 @list = [RPG::EventCommand.new] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
351 352 353 |
# File 'lib/rgss3/rpg.rb', line 351 def id @id end |
#list ⇒ Object
Returns the value of attribute list.
355 356 357 |
# File 'lib/rgss3/rpg.rb', line 355 def list @list end |
#name ⇒ Object
Returns the value of attribute name.
352 353 354 |
# File 'lib/rgss3/rpg.rb', line 352 def name @name end |
#switch_id ⇒ Object
Returns the value of attribute switch_id.
354 355 356 |
# File 'lib/rgss3/rpg.rb', line 354 def switch_id @switch_id end |
#trigger ⇒ Object
Returns the value of attribute trigger.
353 354 355 |
# File 'lib/rgss3/rpg.rb', line 353 def trigger @trigger end |
Instance Method Details
#autorun? ⇒ Boolean
345 346 347 |
# File 'lib/rgss3/rpg.rb', line 345 def autorun? @trigger == 1 end |
#parallel? ⇒ Boolean
348 349 350 |
# File 'lib/rgss3/rpg.rb', line 348 def parallel? @trigger == 2 end |