Class: RPG::Animation::Timing

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_timing.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/animation_timing.rb

Overview

The data class for the timing of an animation’s SE and flash effects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeTiming

Returns a new instance of Timing.



12
13
14
15
16
17
18
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 12

def initialize
  @frame = 0
  @se = RPG::AudioFile.new("", 80)
  @flash_scope = 0
  @flash_color = Color.new(255, 255, 255, 255)
  @flash_duration = 5
end

Instance Attribute Details

#conditionObject

Returns the value of attribute condition.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/xp/rpg/animation_timing.rb', line 21

def condition
  @condition
end

#flash_colorObject

Returns the value of attribute flash_color.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 20

def flash_color
  @flash_color
end

#flash_durationObject

Returns the value of attribute flash_duration.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 20

def flash_duration
  @flash_duration
end

#flash_scopeObject

Returns the value of attribute flash_scope.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 20

def flash_scope
  @flash_scope
end

#frameObject

Returns the value of attribute frame.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 20

def frame
  @frame
end

#seObject

Returns the value of attribute se.



20
21
22
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/animation_timing.rb', line 20

def se
  @se
end