Class: UI::MiningGame::Hit_Counter_Sprite
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::MiningGame::Hit_Counter_Sprite
- Defined in:
- docs/4_Systems_801_Mining_Game.rb
Overview
Class that describes the Hit_Counter_Sprite
Instance Attribute Summary collapse
-
#reason ⇒ Symbol
The symbol corresponding to the Hit_Counter_Sprite number (:first or :not_first).
-
#state ⇒ Integer
The current state.
Attributes inherited from SpriteSheet
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
-
#change_state
Change the state of the Hit_Counter_Sprite.
-
#initialize(viewport, reason) ⇒ Hit_Counter_Sprite
constructor
Create the Hit_Counter_Sprite.
-
#number_of_image_y ⇒ Integer
Return the number of images on a same column.
Methods inherited from SpriteSheet
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, reason) ⇒ Hit_Counter_Sprite
Create the Hit_Counter_Sprite
428 429 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 428 def initialize(, reason) end |
Instance Attribute Details
#reason ⇒ Symbol
Returns the symbol corresponding to the Hit_Counter_Sprite number (:first or :not_first).
424 425 426 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 424 def reason @reason end |
#state ⇒ Integer
Returns the current state.
422 423 424 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 422 def state @state end |
Instance Method Details
#change_state
Change the state of the Hit_Counter_Sprite
431 432 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 431 def change_state end |
#number_of_image_y ⇒ Integer
Return the number of images on a same column
435 436 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 435 def number_of_image_y end |