Examples of DamagableMapObject


Examples of civquest.map.mapobj.DamagableMapObject

  public void execute() {
    notifyBefore();

    MapData mapData = Game.getMapData();
    if (mapData.isMapObjectDamagable(damagableMO)) {
      DamagableMapObject mo = (DamagableMapObject)(mapData.getMapObject(damagableMO));
      mo.setHealth(health);
    } else {
      throw new ClassCastException("SetMapObjectHealth must be feeded with"
                     + " the id of a DamagableMapObject!!!");
    }
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.