abstract class Escapist::TileObj

Included Modules

Direct Known Subclasses

Defined in:

escapist/tile_obj.cr

Constant Summary

DrawSize = 96
Key = "to"
TileSize = 128

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(type : String = "block", col : Int32 = 0, row : Int32 = 0) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.cells_near(x, y) #

[View source]
def self.draw_size #

[View source]
def self.key #

[View source]

Instance Method Detail

def area? #

[View source]
def area_box #

[View source]
def area_entered #

[View source]
def area_entered? #

[View source]
def area_exited #

[View source]
def col : Int32 #

[View source]
def collidable? #

[View source]
def collision_box #

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

[View source]
def draw_offset #

[View source]
def draw_size #

[View source]
def jump_to(col : Int32, row : Int32) #

[View source]
def key #

[View source]
def movable? #

[View source]
def move(dx : Float32 | Int32, dy : Float32 | Int32) #

[View source]
def row : Int32 #

[View source]
def size #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def x #

[View source]
def y #

[View source]