Examples of reduceLifeTime()


Examples of com.tankz.components.Expiration.reduceLifeTime()

  @Override
  protected void process(Entity e, int accumulatedDelta) {
    Expiration expiration = expirationMapper.get(e);

    expiration.reduceLifeTime(accumulatedDelta);

    if (expiration.isExpired()) {
      world.deleteEntity(e);
    } else if (expiration.getLifeTime() < smallestLifeTime) {
      smallestLifeTime = expiration.getLifeTime();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.