I haven't slowed down the game clock to test, but my theory as to what's happening is basically
Code: Select all
if (loco.wants_to_accelerate) {
if (loco.has_fuel_in_bar) {
loco.subtract_fuel_bar()
loco.accelerate()
} else {
loco.consume_fuel()
}
}
EDIT: in code, s/move/accelerate/g