
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.
The newest version!
package com.artemis;
/**
* Simple sequential invocation strategy.
*
* @see SystemInvocationStrategy
*/
public class InvocationStrategy extends SystemInvocationStrategy {
/**
* Processes all systems in order.
*
* Should guarantee artemis is in a sane state using calls to #updateEntityStates
* before each call to a system, and after the last system has been called, or if no
* systems have been called at all.
*/
@Override
protected void process() {
BaseSystem[] systemsData = systems.getData();
for (int i = 0, s = systems.size(); s > i; i++) {
if (disabled.get(i))
continue;
updateEntityStates();
systemsData[i].process();
}
updateEntityStates();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy