class

Escapist::TileObj

Inherits JSON::Serializable < Reference < Object

Constants

DrawSize = 96
Key = "to"
TileSize = 128

Constructors

new(type : String = "block", col : Int32 = 0, row : Int32 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

cells_near(x, y)
Source
draw_size
Source

Instance methods

area?
Source
area_box
Source
area_entered
Source
area_entered?
Source
area_exited
Source
collidable?
Source
collision_box
Source
draw(window : SF::RenderWindow)
Source
draw_offset
Source
draw_size
Source
jump_to(col : Int32, row : Int32)
Source
movable?
Source
move(dx : Float32 | Int32, dy : Float32 | Int32)
Source
size
Source
type
Source
type=(type : String)
Source