com.artemis.InvocationStrategy Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy