public boolean canMove(GridCoordinate target) {
TreeSet<String> traits = fMap.traits(target);
return (!traits.contains("solid") && !traits.contains("nogo") && !traits.contains("water") && gridManager().getFirstEntityOfTypeAt(target, Grunt.class, Grunt.this) == null);
}
};
fMovement.setup(500, new LinearLerper());
// Setup the tile watcher
fTileWatcher = new Minion<GridEvent>() {
public long run(com.pointcliki.event.Dispatcher<GridEvent> dispatcher, String type, GridEvent event) {
checkTile();