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

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

Overview

Base class of all transitions

Direct Known Subclasses

RBYTrainer, RBYWild, XYTrainer

Instance Method Summary collapse

Constructor Details

#initialize(scene, screenshot) ⇒ Base

Create a new transition

Parameters:



480
481
# File 'docs/5_Battle_02_Visual.rb', line 480

def initialize(scene, screenshot)
end

Instance Method Details

#dispose

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



490
491
# File 'docs/5_Battle_02_Visual.rb', line 490

def dispose
end

#done?Boolean

Tell if the transition is done

Returns:

  • (Boolean)


487
488
# File 'docs/5_Battle_02_Visual.rb', line 487

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.



497
498
# File 'docs/5_Battle_02_Visual.rb', line 497

def pre_transition
end

#start_actor_send_animation

Function that starts the Actor send animation



514
515
# File 'docs/5_Battle_02_Visual.rb', line 514

def start_actor_send_animation
end

#start_enemy_send_animation

Function that starts the Enemy send animation



511
512
# File 'docs/5_Battle_02_Visual.rb', line 511

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



505
506
# File 'docs/5_Battle_02_Visual.rb', line 505

def transition
end

#transition_battle_end

Start the transition



508
509
# File 'docs/5_Battle_02_Visual.rb', line 508

def transition_battle_end
end

#update

Update the transition



483
484
# File 'docs/5_Battle_02_Visual.rb', line 483

def update
end