Class: Bestguigui::State

Inherits:
Object
  • Object
show all
Defined in:
lib/bestguigui/state.rb

Overview

Sous-classe pour chaque écran (menu, jeu, game over...).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appObject

Returns the value of attribute app.



4
5
6
# File 'lib/bestguigui/state.rb', line 4

def app
  @app
end

Instance Method Details

#button_down(id) ⇒ Object



10
# File 'lib/bestguigui/state.rb', line 10

def button_down(id); end

#button_up(id) ⇒ Object



11
# File 'lib/bestguigui/state.rb', line 11

def button_up(id); end

#drawObject



9
# File 'lib/bestguigui/state.rb', line 9

def draw; end

#enterObject



6
# File 'lib/bestguigui/state.rb', line 6

def enter; end

#exitObject



7
# File 'lib/bestguigui/state.rb', line 7

def exit; end

#update(dt) ⇒ Object



8
# File 'lib/bestguigui/state.rb', line 8

def update(dt); end