Back to project page acceptableLosses.
The source code is released under:
MIT License
If you think the Android project acceptableLosses listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package acceptableLosses.work; /*ww w . java 2 s. co m*/ import acceptableLosses.map.Region; import com.stewsters.util.pathing.threeDimention.shared.Mover3d; import com.stewsters.util.pathing.threeDimention.shared.PathNode3d; public class CivilianMover implements Mover3d { private Region region; public CivilianMover(Region region) { this.region = region; } @Override public boolean canTraverse(PathNode3d pathNode) { if (region.tiles[pathNode.x][pathNode.y][pathNode.z].blocks) return false; if (region.furniture[pathNode.x][pathNode.y][pathNode.z] != null && region.furniture[pathNode.x][pathNode.y][pathNode.z].furnitureType.blocks) return false; return true; } }