Class: RPG::CommonEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/rgss3/rpg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommonEvent

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

#idObject

Returns the value of attribute id.



351
352
353
# File 'lib/rgss3/rpg.rb', line 351

def id
  @id
end

#listObject

Returns the value of attribute list.



355
356
357
# File 'lib/rgss3/rpg.rb', line 355

def list
  @list
end

#nameObject

Returns the value of attribute name.



352
353
354
# File 'lib/rgss3/rpg.rb', line 352

def name
  @name
end

#switch_idObject

Returns the value of attribute switch_id.



354
355
356
# File 'lib/rgss3/rpg.rb', line 354

def switch_id
  @switch_id
end

#triggerObject

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

Returns:

  • (Boolean)


345
346
347
# File 'lib/rgss3/rpg.rb', line 345

def autorun?
  @trigger == 1
end

#parallel?Boolean

Returns:

  • (Boolean)


348
349
350
# File 'lib/rgss3/rpg.rb', line 348

def parallel?
  @trigger == 2
end