abstract class Looper::Vehicle

Direct Known Subclasses

Defined in:

looper/vehicle.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Looper::Obj

collision?(x, y, width, height)
collision?(objs : Array(Obj))
collision?(rects : Array(Rectangle))
collision?(tris : Array(Triangle))
collision?(obj : Obj)
collision?(rect : Rectangle)
collision?(tri : Triangle)
collision?
, draw draw, height : Int32 height, height=(height : Int32) height=, hit_box hit_box, inside?(x, y) inside?, update(frame_time) update, width : Int32 width, width=(width : Int32) width=, x : Int32 | Float32 x, x=(x : Int32 | Float32) x=, y : Int32 | Float32 y, y=(y : Int32 | Float32) y=

Constructor methods inherited from class Looper::Obj

new(x : Float32 | Int32, y : Float32 | Int32, width : Int32, height : Int32, hit_box_color : Color = HIT_BOX_COLOR) new

Constructor Detail

def self.new(x, y, width, height, player : Bool = false) #

[View source]

Class Method Detail

def self.acceleration #

[View source]
def self.drag #

[View source]
def self.drift #

[View source]
def self.max_acceleration #

[View source]
def self.turning #

[View source]

Instance Method Detail

def accelerate(frame_time) #

[View source]
def braking? : Bool #

[View source]
def draw #

[View source]
def drifting? : Bool #

[View source]
def input(frame_time) #

[View source]
def movement(frame_time) #

[View source]
def player? : Bool #

[View source]
def reverse? : Bool #

[View source]
def rotation : Int32 | Float32 #

[View source]
def turn(time_and_direction) #

[View source]
def turn_left(frame_time) #

[View source]
def turn_right(frame_time) #

[View source]
def update(frame_time) #

[View source]