Package civquest.nation

Examples of civquest.nation.Nation


         assert unit != null;
         assert nation != null;
           
         if (unit.getOwner() != null) {
             Nation prevNation = unit.getOwner();
             prevNation.removeUnit(unit);
         }
               
         unit.setOwner(nation);
         nation.addUnit(unit);
     }
View Full Code Here


        assert city != null;

        Field field = city.getField();
        field.removeMapObject(city);
       
        Nation owner = city.getOwner();
        if (owner != null) {
            owner.removeCity(city);
        }

    game.remove(city);
  }
View Full Code Here

        assert city != null;
        assert nation != null;
           
        if (city.getOwner() != null) {
            Nation prevOwner = city.getOwner();
            prevOwner.removeCity(city);
        }
               
        city.setOwner(nation);
        nation.addCity(city);
    }
View Full Code Here

  public boolean isFieldOwnerAvailable(Coordinate position) {
    return true;
  }

  public Long getFieldOwner(Coordinate position) {
    Nation owner = getField(position).getOwner();
    return (owner != null ? owner.getID() : null);
  }
View Full Code Here

TOP

Related Classes of civquest.nation.Nation

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.