abstract class RPG::Collidable

Direct Known Subclasses

Defined in:

rpg/collidable.cr

Constant Summary

Size = 64

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, dialog_key : String = "") #

[View source]

Instance Method Detail

def action #

[View source]
def area_radius #

[View source]
def area_triggered? : Bool #

[View source]
def check_area_triggered?(player : Player) #

[View source]
def collision_height #

[View source]
def collision_width #

[View source]
def dialog_key : String #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def jump(x : Float32 | Int32, y : Float32 | Int32) #

[View source]
def jump_to_tile(col, row, tile_size) #

[View source]
def reset_area_triggered #

[View source]
def size #

[View source]
def update(frame_time) #

[View source]
def x : Int32 | Float32 #

[View source]
def y : Int32 | Float32 #

[View source]