Class: Contest::Scene

Inherits:
GamePlay::Base show all
Defined in:
docs/6_Contest_01_Scene.rb

Overview

Base class of the contest scene

Constant Summary

Constants inherited from GamePlay::Base

GamePlay::Base::DEFAULT_TRANSITION, GamePlay::Base::DEFAULT_TRANSITION_PARAMETER

Constants included from Input

Input::ALIAS_KEYS, Input::AXIS_MAPPING, Input::AXIS_SENSITIVITY, Input::DEAD_ZONE, Input::Keyboard, Input::Keys, Input::NON_TRIGGER_ZONE, Input::REPEAT_COOLDOWN, Input::REPEAT_SPACE

Constants included from GamePlay::DisplayMessage

GamePlay::DisplayMessage::MESSAGE_ERROR, GamePlay::DisplayMessage::MESSAGE_PROCESS_ERROR

Instance Attribute Summary collapse

Attributes inherited from GamePlay::Base

#__last_scene, #__result_process, #clock, #running, #viewport

Instance Method Summary collapse

Methods inherited from GamePlay::Base

#add_disposable, #call_scene, #find_parent, #main, #return_to_scene, #visible, #visible=

Methods included from Input

clear, close_virtual_keyboard, dir4, dir8, get_text, joy_axis_position, load_touch_screen, open_virtual_keyboard, press?, register_events, released?, repeat?, swap_states, trigger?

Methods included from GamePlay::DisplayMessage

#can_display_message_be_called?, #close_message_window, #display_message, #display_message_and_wait, #message_processing?, #message_visible, #message_visible=

Constructor Details

#initialize ⇒ Scene

Create a new Contest Scene



24
25
# File 'docs/6_Contest_01_Scene.rb', line 24

def initialize
end

Instance Attribute Details

#artificial_intelligences ⇒ Array<Contest::AI::Base> (readonly)

Returns:



14
15
16
# File 'docs/6_Contest_01_Scene.rb', line 14

def artificial_intelligences
  @artificial_intelligences
end

#contest_info ⇒ Contest::Logic::ContestInfo (readonly)



10
11
12
# File 'docs/6_Contest_01_Scene.rb', line 10

def contest_info
  @contest_info
end

#contest_placement ⇒ Integer (readonly)

Contest final placement

Returns:

  • (Integer)


19
20
21
# File 'docs/6_Contest_01_Scene.rb', line 19

def contest_placement
  @contest_placement
end

#contest_score ⇒ Integer (readonly)

Contest final score

Returns:

  • (Integer)


22
23
24
# File 'docs/6_Contest_01_Scene.rb', line 22

def contest_score
  @contest_score
end

#logic ⇒ Contest::Logic (readonly)

Returns:



8
9
10
# File 'docs/6_Contest_01_Scene.rb', line 8

def logic
  @logic
end

#message_window ⇒ UI::Message::Window (readonly)

Returns:



12
13
14
# File 'docs/6_Contest_01_Scene.rb', line 12

def message_window
  @message_window
end

#next_update ⇒ Symbol (readonly)

Returns:

  • (Symbol)


16
17
18
# File 'docs/6_Contest_01_Scene.rb', line 16

def next_update
  @next_update
end

#visual ⇒ Contest::Visual (readonly)

Returns:



6
7
8
# File 'docs/6_Contest_01_Scene.rb', line 6

def visual
  @visual
end

Instance Method Details

#dispose

Dispose the battle scene



40
41
# File 'docs/6_Contest_01_Scene.rb', line 40

def dispose
end

#main_begin

Disable the Graphics.transition



31
32
# File 'docs/6_Contest_01_Scene.rb', line 31

def main_begin()
end

#next_update_process

Process the next update method



37
38
# File 'docs/6_Contest_01_Scene.rb', line 37

def next_update_process
end

#snap_to_bitmap ⇒ Texture

Note:

You have to dispose the bitmap you got from this function

Take a snapshot of the scene

Returns:



45
46
# File 'docs/6_Contest_01_Scene.rb', line 45

def snap_to_bitmap
end

#to_s Also known as: inspect

Safe to_s & inspect



27
28
# File 'docs/6_Contest_01_Scene.rb', line 27

def to_s
end

#update

Update the scene



34
35
# File 'docs/6_Contest_01_Scene.rb', line 34

def update
end