abstract class Buzzle::Obj

Direct Known Subclasses

Defined in:

buzzle/obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, z : Int32 = 0, width : Int32 = 0, height : Int32 = 0, direction : Buzzle::Direction = Direction::Down, hidden : Bool = false) #

[View source]

Instance Method Detail

def collidable? #

[View source]
def collision?(x, y, width, height) #

[View source]
def collision?(objs : Array(Obj)) #

[View source]
def collision?(obj : Obj) #

[View source]
def collisions(objs : Array(Obj)) #

[View source]
def direction : Direction #

[View source]
def directional_collision?(objs : Array(Obj), direction : Direction) #

[View source]
def directional_collision?(obj : Obj, direction : Direction) #

[View source]
def draw(_screen_x, _screen_y) #

[View source]
def draw_sort(obj : Obj) #

[View source]
def face(entity) #

[View source]
def facing?(entity : Entity, opposite = false) #

[View source]
def height : Int32 #

[View source]
def hidden? : Bool #

[View source]
def hide #

[View source]
def horz_between?(entity) #

[View source]
def horz_distance_longer?(entity) #

[View source]
def layer #

[View source]
def remove #

[View source]
def removed? : Bool #

[View source]
def show #

[View source]
def to_s(io) #

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

[View source]
def update(_frame_time) #

[View source]
def vert_between?(entity) #

[View source]
def vert_distance_longer?(entity) #

[View source]
def width : Int32 #

[View source]
def x : Int32 #

[View source]
def x_draw #

[View source]
def y : Int32 #

[View source]
def y_draw #

[View source]
def z : Int32 #

[View source]