Closed martinjonsson01 closed 1 year ago
If I were to call: scania.raiseplatform(10); scania.gas(1); scania.move(); then I could move Scania while the platform is raised, which should not be possible.
scania.raiseplatform(10);
scania.gas(1);
scania.move();
https://github.com/ghazalghorabi/TDA553-lab1/blob/01f3360df2ab6d8a3dae4522fac81312009bb5d9/src/Truck.java#L2
If I were to call:
scania.raiseplatform(10);
scania.gas(1);
scania.move();
then I could move Scania while the platform is raised, which should not be possible.https://github.com/ghazalghorabi/TDA553-lab1/blob/01f3360df2ab6d8a3dae4522fac81312009bb5d9/src/Truck.java#L2