Newer
Older
this.name = name; // needs to be unique, otherwise the searching code will just use the first one it finds.
step() {
for (let i = 0; i < this.objects.length; i++) {
this.objects[i].step();
}
}
}