Class: RPG::CommonEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommonEvent

Returns a new instance of CommonEvent.



1212
1213
1214
1215
1216
1217
1218
# File 'lib/R3EXS/RGSS3.rb', line 1212

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.



1228
1229
1230
# File 'lib/R3EXS/RGSS3.rb', line 1228

def id
  @id
end

#listObject

Returns the value of attribute list.



1232
1233
1234
# File 'lib/R3EXS/RGSS3.rb', line 1232

def list
  @list
end

#nameObject

Returns the value of attribute name.



1229
1230
1231
# File 'lib/R3EXS/RGSS3.rb', line 1229

def name
  @name
end

#switch_idObject

Returns the value of attribute switch_id.



1231
1232
1233
# File 'lib/R3EXS/RGSS3.rb', line 1231

def switch_id
  @switch_id
end

#triggerObject

Returns the value of attribute trigger.



1230
1231
1232
# File 'lib/R3EXS/RGSS3.rb', line 1230

def trigger
  @trigger
end

Instance Method Details

#autorun?Boolean

Returns:

  • (Boolean)


1220
1221
1222
# File 'lib/R3EXS/RGSS3.rb', line 1220

def autorun?
    @trigger == 1
end

#parallel?Boolean

Returns:

  • (Boolean)


1224
1225
1226
# File 'lib/R3EXS/RGSS3.rb', line 1224

def parallel?
    @trigger == 2
end