Defines the Bike class.
The bike.
Parameters: |
|
---|
Make the bike fall over (as when it has lost momentum).
Parameters: | rider (Character) – Whoever was riding the bike (if anybody). |
---|
Return the ID of the command list used by the bike.
Parameters: | lesson_id – The ID of the current lesson (ignored - bikes do not follow a timetable). |
---|
Return the wall or door that the bike has hit (if any).
Returns: | The barrier that was hit, or None if none was hit. |
---|
Pedal the bike (increase its momentum).
Prepare the bike for riding by Eric. This entails giving the bike some initial momentum, and hiding its sprite.
Start wheeling the bike along after the rider has dismounted or stood on the saddle.
Parameters: | rider (Character) – The rider. |
---|
Deposit the bike at the base of the tree (or whatever the unchain location is set to).
Continue wheeling the bike along until it hits a barrier or runs out of momentum.