class CarAdaptor

Public Class Methods

new(car) click to toggle source
Calls superclass method
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 33
def initialize(car)
    super()
            @car = car
    startTimer(1000 / 33)
end

Public Instance Methods

accelerate() click to toggle source
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 39
def accelerate
    @car.accelerate
end
decelerate() click to toggle source
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 43
def decelerate
    @car.decelerate
end
timerEvent(event) click to toggle source
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 55
def timerEvent(event)
    @car.timerEvent(event)
end
turnLeft() click to toggle source
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 47
def turnLeft
    @car.turnLeft
end
turnRight() click to toggle source
# File examples/qdbus/remotecontrolledcar/car/car.rb, line 51
def turnRight
    @car.turnRight
end