Class: UI::ContestJudge

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

Overview

Class that represents the Judge during a contest

Constant Summary collapse

CONTEST_JUDGE =

Judge's sprite

Returns:

'contest/judge'
ENTHOUSIASM_STAR =

Enthousiasm star sprite

Returns:

'contest/star'

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 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, condition) ⇒ ContestJudge

Create a new Contest Judge Sprite

Parameters:

  • viewport (Viewport)
  • condition (Symbol) —

    condition of the contest to determine the sy of the sprite



513
514
# File 'docs/6_Contest_01_Scene.rb', line 513

def initialize(viewport, condition)
end

Instance Attribute Details

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

Get the animation handler



500
501
502
# File 'docs/6_Contest_01_Scene.rb', line 500

def animation_handler
  @animation_handler
end

#current_enthousiasm ⇒ Integer (readonly)

Enthousiasm current value

Returns:

  • (Integer)


506
507
508
# File 'docs/6_Contest_01_Scene.rb', line 506

def current_enthousiasm
  @current_enthousiasm
end

#enthousiasm_star_sprites ⇒ Array<UI::Sprite> (readonly)

Enthousiasm stars sprites

Returns:

  • (Array<UI::Sprite>)


503
504
505
# File 'docs/6_Contest_01_Scene.rb', line 503

def enthousiasm_star_sprites
  @enthousiasm_star_sprites
end

#judge_sprite ⇒ UI::Sprite (readonly)

The judge's sprite

Returns:

  • (UI::Sprite)


509
510
511
# File 'docs/6_Contest_01_Scene.rb', line 509

def judge_sprite
  @judge_sprite
end

Instance Method Details

#change_enthousiasm(amount) ⇒ Yuki::AnimationMixin

Change the enthousiasm shown

Parameters:

  • score (Integer) —

    Change to apply to the enthousiasm

Returns:



528
529
# File 'docs/6_Contest_01_Scene.rb', line 528

def change_enthousiasm(amount)
end

#create_animation

Create the animation



516
517
# File 'docs/6_Contest_01_Scene.rb', line 516

def create_animation
end

#done? ⇒ Boolean

Tell if the InfoBox animations are done

Returns:

  • (Boolean)


523
524
# File 'docs/6_Contest_01_Scene.rb', line 523

def done?
end

#reset_enthousiasm

Reset the enthousiasm



531
532
# File 'docs/6_Contest_01_Scene.rb', line 531

def reset_enthousiasm
end

#update

Update the InfoBox



519
520
# File 'docs/6_Contest_01_Scene.rb', line 519

def update
end