class GeoWars::Cursor

Defined in:

geo_wars/cursor.cr

Constant Summary

BORDER_WIDTH_DIVISOR = 16
CURSOR_COLOR = LibRay::BLACK
KEY_DOWN_INITIAL_TIMER = 0.5
KEY_DOWN_TIMER = 0.125
SIZE_RATIO = 8
SIZE_RATIO_SHRINK = 4
SIZE_RATIO_SHRINK_TIMER = 0.75

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32) #

[View source]

Class Method Detail

def self.deserialize(line) #

[View source]

Instance Method Detail

def animation(frame_time) #

[View source]
def draw(viewport) #

[View source]
def movement(frame_time, valid_move_deltas) #

[View source]
def selected?(x, y) #

[View source]
def selection? : Bool #

[View source]
def selection_cancel? : Bool? #

[View source]
def selection_check #

[View source]
def serialize #

[View source]
def update(frame_time, valid_move_deltas) #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]