Module: Cursor
- Defined in:
- lib/fantasy/cursor.rb
Class Method Summary collapse
- .down ⇒ Object
- .down? ⇒ Boolean
- .left ⇒ Object
- .left? ⇒ Boolean
- .right ⇒ Object
- .right? ⇒ Boolean
- .space_bar ⇒ Object
- .space_bar? ⇒ Boolean
- .up ⇒ Object
- .up? ⇒ Boolean
Class Method Details
.down ⇒ Object
16 17 18 |
# File 'lib/fantasy/cursor.rb', line 16 def self.down Gosu::KB_DOWN end |
.down? ⇒ Boolean
36 37 38 |
# File 'lib/fantasy/cursor.rb', line 36 def self.down? Gosu.(Cursor.down) end |
.left ⇒ Object
4 5 6 |
# File 'lib/fantasy/cursor.rb', line 4 def self.left Gosu::KB_LEFT end |
.left? ⇒ Boolean
24 25 26 |
# File 'lib/fantasy/cursor.rb', line 24 def self.left? Gosu.(Cursor.left) end |
.right ⇒ Object
8 9 10 |
# File 'lib/fantasy/cursor.rb', line 8 def self.right Gosu::KB_RIGHT end |
.right? ⇒ Boolean
28 29 30 |
# File 'lib/fantasy/cursor.rb', line 28 def self.right? Gosu.(Cursor.right) end |
.space_bar ⇒ Object
20 21 22 |
# File 'lib/fantasy/cursor.rb', line 20 def self. Gosu::KB_SPACE end |
.up ⇒ Object
12 13 14 |
# File 'lib/fantasy/cursor.rb', line 12 def self.up Gosu::KB_UP end |