Class: UI::CoordinatorWithContestantSprite

Inherits:
SpriteStack show all
Includes:
BattleUI::GoingInOut, UI
Defined in:
docs/6_Contest_01_Scene.rb

Overview

Class that represents a Coordinator with its Creature during a contest

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods included from BattleUI::GoingInOut

#go_in, #go_out, #in?, #out?

Methods inherited from SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, coordinator) ⇒ CoordinatorWithContestantSprite

Create a new CoordinatorWithContestant Sprite

Parameters:

  • viewport (Viewport)
  • coordinator (String) —

    coordinator sprite name



587
588
# File 'docs/6_Contest_01_Scene.rb', line 587

def initialize(viewport, coordinator)
end

Instance Attribute Details

#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin}

Get the animation handler



583
584
585
# File 'docs/6_Contest_01_Scene.rb', line 583

def animation_handler
  @animation_handler
end

#contestant ⇒ PFM::ContestCreature

The Contestant shown with the sprite



574
575
576
# File 'docs/6_Contest_01_Scene.rb', line 574

def contestant
  @contestant
end

#contestant_sprite ⇒ UI::Sprite

Contestant's sprite

Returns:

  • (UI::Sprite)


580
581
582
# File 'docs/6_Contest_01_Scene.rb', line 580

def contestant_sprite
  @contestant_sprite
end

#coordinator ⇒ String

Coordinator sprite name

Returns:



571
572
573
# File 'docs/6_Contest_01_Scene.rb', line 571

def coordinator
  @coordinator
end

#coordinator_sprite ⇒ UI::Sprite

Coordinator's sprite

Returns:

  • (UI::Sprite)


577
578
579
# File 'docs/6_Contest_01_Scene.rb', line 577

def coordinator_sprite
  @coordinator_sprite
end

Instance Method Details

#create_animation

Create the animation



594
595
# File 'docs/6_Contest_01_Scene.rb', line 594

def create_animation
end

#done? ⇒ Boolean

Tell if the Sprite animations are done

Returns:

  • (Boolean)


601
602
# File 'docs/6_Contest_01_Scene.rb', line 601

def done?
end

#go_in_animation ⇒ Yuki::AnimationMixin

Creates the go_in animation



605
606
# File 'docs/6_Contest_01_Scene.rb', line 605

def go_in_animation
end

#go_out_animation ⇒ Yuki::AnimationMixin

Creates the go_out animation



609
610
# File 'docs/6_Contest_01_Scene.rb', line 609

def go_out_animation
end

#update

Update the Sprtie



597
598
# File 'docs/6_Contest_01_Scene.rb', line 597

def update
end