Instead of checking instance of veh,
use the abstract method getMaxSpeed()
with a given factor.
This should reduce redundant checks
(Wasted CPU cycles). Thus, run is
a tiny bit faster.
|
||
|---|---|---|
| .idea | ||
| src | ||
| .classpath | ||
| .gitignore | ||
| .project | ||
| Hajj-simulation.iml | ||