class

GSDL::TileObject

Inherits Reference < Object

Constructors

new(id : Int32, name : String, type : String, x : Float32, y : Float32, width : Float32, height : Float32, rotation : Float32 = 0.0_f32, visible : Bool = true, gid : UInt32 | Nil = nil, properties : Hash(String, JSON::Any) = {} of String => JSON::Any)
Source

Instance methods

contains?(px : Float32, py : Float32) : Bool
Source
get_collision_rect

Returns the collision rectangle for this object. Subclasses should override this if they have a different collision box.

Source
gid=(gid : UInt32 | Nil)
Source
height
Source
height=(height : Float32)
Source
id=(id : Int32)
Source
name
Source
name=(name : String)
Source
properties
Source
properties=(properties : Hash(String, JSON::Any))
Source
rotation
Source
rotation=(rotation : Float32)
Source
type
Source
type=(type : String)
Source
update(dt : Float32)
Source
visible
Source
visible=(visible : Bool)
Source
width
Source
width=(width : Float32)
Source