Back to project page acceptableLosses.
The source code is released under:
MIT License
If you think the Android project acceptableLosses listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package acceptableLosses.components; /* w w w . j ava 2s . com*/ import com.artemis.PooledComponent; import java.util.List; /** * This entity can hold cargo */ public class Cargo extends PooledComponent { /* * These are the entities we are holding. Remove their location while they are being carried and add it again when * they are set on the ground. */ public List<Integer> containedEntities; // Max number we can hold. Perhaps we should do weight? public int capacity; @Override protected void reset() { containedEntities.clear(); } }