Class: Battle::Visual::Transition::Base

Inherits:
Object
  • Object
show all
Defined in:
docs/5_Battle_02_Visual.rb

Overview

Base class of all transitions

Instance Method Summary collapse

Constructor Details

#initialize(scene, screenshot) ⇒ Base

Create a new transition

Parameters:



662
663
# File 'docs/5_Battle_02_Visual.rb', line 662

def initialize(scene, screenshot)
end

Instance Method Details

#dispose

Dispose the transition (safely clean all things that needs to be disposed)



672
673
# File 'docs/5_Battle_02_Visual.rb', line 672

def dispose
end

#done? ⇒ Boolean

Tell if the transition is done

Returns:

  • (Boolean)


669
670
# File 'docs/5_Battle_02_Visual.rb', line 669

def done?
end

#pre_transition

Start the pre transition (fade in)

  • Initialize all the sprites
  • Create all the pre-transition animations
  • Force Graphics transition if needed.


679
680
# File 'docs/5_Battle_02_Visual.rb', line 679

def pre_transition
end

#start_actor_send_animation

Function that starts the Actor send animation



696
697
# File 'docs/5_Battle_02_Visual.rb', line 696

def start_actor_send_animation
end

#start_enemy_send_animation

Function that starts the Enemy send animation



693
694
# File 'docs/5_Battle_02_Visual.rb', line 693

def start_enemy_send_animation
end

#transition

Start the transition (fade out)

  • Create all the transition animation
  • Add all the message to the animation
  • Add the send enemy Pokemon animation
  • Add the send actor Pokemon animation


687
688
# File 'docs/5_Battle_02_Visual.rb', line 687

def transition
end

#transition_battle_end

Start the transition



690
691
# File 'docs/5_Battle_02_Visual.rb', line 690

def transition_battle_end
end

#update

Update the transition



665
666
# File 'docs/5_Battle_02_Visual.rb', line 665

def update
end