Class: UI::VoltorbFlip::Cursor
- Inherits:
-
Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- UI::VoltorbFlip::Cursor
- Defined in:
- docs/4_Systems_900_Games.rb
Overview
Cursor shown in VoltorbFlip scene
Instance Attribute Summary collapse
-
#board_x ⇒ Integer
readonly
The X coords on the board of the cursor.
-
#board_y ⇒ Integer
readonly
The Y coords on the board of the cursor.
-
#mode ⇒ Symbol
The cursor mode :normal, :memo.
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#get_board_position(x, y) ⇒ Array(Integer, Integer)
Convert board coord in pixel coords.
-
#initialize(viewport) ⇒ Cursor
constructor
Create a new cursor.
-
#move_on_board(dx, dy)
Start the cursor mouvement.
-
#moveto(board_x, board_y)
Move the cursor to a dedicated board coordinate.
-
#update_move ⇒ Boolean
Update the cursor mouvement, return true if the mouvement has been updated.
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport) ⇒ Cursor
Create a new cursor
140 141 |
# File 'docs/4_Systems_900_Games.rb', line 140 def initialize() end |
Instance Attribute Details
#board_x ⇒ Integer (readonly)
The X coords on the board of the cursor
131 132 133 |
# File 'docs/4_Systems_900_Games.rb', line 131 def board_x @board_x end |
#board_y ⇒ Integer (readonly)
The Y coords on the board of the cursor
134 135 136 |
# File 'docs/4_Systems_900_Games.rb', line 134 def board_y @board_y end |
#mode ⇒ Symbol
The cursor mode :normal, :memo
137 138 139 |
# File 'docs/4_Systems_900_Games.rb', line 137 def mode @mode end |
Instance Method Details
#get_board_position(x, y) ⇒ Array(Integer, Integer)
Convert board coord in pixel coords
150 151 |
# File 'docs/4_Systems_900_Games.rb', line 150 def get_board_position(x, y) end |
#move_on_board(dx, dy)
Start the cursor mouvement
155 156 |
# File 'docs/4_Systems_900_Games.rb', line 155 def move_on_board(dx, dy) end |
#moveto(board_x, board_y)
Move the cursor to a dedicated board coordinate
160 161 |
# File 'docs/4_Systems_900_Games.rb', line 160 def moveto(board_x, board_y) end |
#update_move ⇒ Boolean
Update the cursor mouvement, return true if the mouvement has been updated
144 145 |
# File 'docs/4_Systems_900_Games.rb', line 144 def update_move end |