Package com.pointcliki.dizgruntled.logic

Examples of com.pointcliki.dizgruntled.logic.Grunt.state()


 
  protected boolean passable(GridCoordinate tile) {
    TreeSet<String> traits = fScene.mapManager().map().traits(tile);
    if (traits.contains("nogo") || traits.contains("solid") || traits.contains("water")) return false;
    Grunt g = fScene.gridManager().getFirstEntityOfTypeAt(tile, Grunt.class);
    if (g != null && g.state() != GruntState.MOVING) return false;
    return true;
  }
 
  protected boolean diagMove(GridCoordinate tile, GridCoordinate diagDir) {
    GridCoordinate a = tile.add(new GridCoordinate(diagDir.x(), 0));
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.