Class: UI::ContestJudge
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::ContestJudge
- 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
'contest/judge'- ENTHOUSIASM_STAR =
Enthousiasm star sprite
'contest/star'
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin}
readonly
Get the animation handler.
-
#current_enthousiasm ⇒ Integer
readonly
Enthousiasm current value.
-
#enthousiasm_star_sprites ⇒ Array<UI::Sprite>
readonly
Enthousiasm stars sprites.
-
#judge_sprite ⇒ UI::Sprite
readonly
The judge's sprite.
Attributes inherited from SpriteStack
#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#change_enthousiasm(amount) ⇒ Yuki::AnimationMixin
Change the enthousiasm shown.
-
#create_animation
Create the animation.
-
#done? ⇒ Boolean
Tell if the InfoBox animations are done.
-
#initialize(viewport, condition) ⇒ ContestJudge
constructor
Create a new Contest Judge Sprite.
-
#reset_enthousiasm
Reset the enthousiasm.
-
#update
Update the InfoBox.
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
513 514 |
# File 'docs/6_Contest_01_Scene.rb', line 513 def initialize(, 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
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
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
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
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
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 |