Class: BattleUI::Cursor

Inherits:
ShaderedSprite show all
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb

Overview

Sprite showing a cursor (being animated)

Instance Attribute Summary collapse

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

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

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport) ⇒ Cursor

Create a new cursor

Parameters:



1090
1091
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1090

def initialize(viewport)
end

Instance Attribute Details

#origin_x (readonly)

Get the origin x



1081
1082
1083
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1081

def origin_x
  @origin_x
end

#origin_y (readonly)

Get the origin y



1083
1084
1085
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1083

def origin_y
  @origin_y
end

#target_x (readonly)

Get the target x



1085
1086
1087
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1085

def target_x
  @target_x
end

#target_y (readonly)

Get the target y



1087
1088
1089
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1087

def target_y
  @target_y
end

Instance Method Details

#register_positions

Register the positions so the cursor can animate itself



1093
1094
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1093

def register_positions
end

#start_animationYuki::Animation::TimedLoopAnimation

Create and start the cursor animation



1108
1109
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1108

def start_animation
end

#stop_animation

Stops the animation



1104
1105
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1104

def stop_animation
end

#update

Update the sprite



1096
1097
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1096

def update
end

#visible=(visible)

Set the visibility

Parameters:

  • visible (Boolean)


1100
1101
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1100

def visible=(visible)
end