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.



1190
1191
1192
1193
1194
1195
1196
# File 'lib/R3EXS/RGSS3.rb', line 1190

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.



1206
1207
1208
# File 'lib/R3EXS/RGSS3.rb', line 1206

def id
  @id
end

#listObject

Returns the value of attribute list.



1210
1211
1212
# File 'lib/R3EXS/RGSS3.rb', line 1210

def list
  @list
end

#nameObject

Returns the value of attribute name.



1207
1208
1209
# File 'lib/R3EXS/RGSS3.rb', line 1207

def name
  @name
end

#switch_idObject

Returns the value of attribute switch_id.



1209
1210
1211
# File 'lib/R3EXS/RGSS3.rb', line 1209

def switch_id
  @switch_id
end

#triggerObject

Returns the value of attribute trigger.



1208
1209
1210
# File 'lib/R3EXS/RGSS3.rb', line 1208

def trigger
  @trigger
end

Instance Method Details

#autorun?Boolean

Returns:

  • (Boolean)


1198
1199
1200
# File 'lib/R3EXS/RGSS3.rb', line 1198

def autorun?
    @trigger == 1
end

#parallel?Boolean

Returns:

  • (Boolean)


1202
1203
1204
# File 'lib/R3EXS/RGSS3.rb', line 1202

def parallel?
    @trigger == 2
end