Package civquest.map.gameChange

Examples of civquest.map.gameChange.SetMapObjectHealth


  public List<GameChange> receive(Damage damage) {
     List<GameChange> retList = new ArrayList<GameChange>();
    Random random = new Random();
    double healthDecrease = Math.abs(random.nextGaussian() * 0.25);
    SetMapObjectHealth change = new SetMapObjectHealth(this.getID(),
                               this.getHealth() - healthDecrease);
    retList.add(change);
     return retList;
  }
View Full Code Here

TOP

Related Classes of civquest.map.gameChange.SetMapObjectHealth

Copyright © 2018 www.massapicom. 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.