Gornova/MarteEngine — Issue #67: leftWorldBoundaries called multiple times when entity leaves the world.
Author: Stef569
Created: 2011-11-16 00:58:56+00:00
State: open

Is it by design that the leftWorldBoundaries is called multiple times on leaving the world?
I would expect that it is invoked once.

In World update:
for (Entity e : entities) {
e.updateAlarms(delta);
if (e.active)
e.update(container, delta);
// check for wrapping or out of world entities
e.checkWorldBoundaries();
}

in Entity The javadoc says 'act on leaving'. That sounds like a single event?
/**
* Overload if you want to act on leaving world boundaries
*/
public void leftWorldBoundaries() {
}