All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.InvocationStrategy Maven / Gradle / Ivy

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