Closed djalilhebal closed 4 years ago
"Bulk operations" are even simpler:
void playAll() {
for (Wrapper thing : things) {
thing.pathTransition.play();
}
}
void pauseAll() {
for (Wrapper thing : things) {
thing.pathTransition.pause();
}
}
void resetAll() {
for (Wrapper thing : things) {
thing.pathTransition.playFromStart();
}
}
Now you can implement WorldViewInterface methods like this (same for Cars):