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

com.artemis.InvocationStrategy Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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