com.artemis.InvocationStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
package com.artemis;
import com.artemis.utils.Bag;
public class InvocationStrategy extends SystemInvocationStrategy {
@Override
protected void process(Bag systems) {
Object[] systemsData = systems.getData();
for (int i = 0, s = systems.size(); s > i; i++) {
updateEntityStates();
BaseSystem system = (BaseSystem) systemsData[i];
if (!system.isPassive()) {
system.process();
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy