public boolean isCleared() { if (!clearable) return false; for (Event event : events) { if (!event.isCleared()) return false; } return true; }
public void tick() { // This ensures there is no overflow, which shouldn't happen for 1.8e26 millennia, but just in // case! // In retrospect (after doing the math) even a short could be used to represent 828 days of // values. if (time < Float.MAX_VALUE - 1) time++; for (Event event : events) { temp.add(event.tick(time)); } for (Event event : temp) events.remove(event); temp.clear(); }