public void markEntry(TILE_SIDE e) { // reentering tile from where we exited before if (exit != TILE_SIDE.UNMARKED && exit == e) { exit = TILE_SIDE.UNMARKED; return; } // reentering tile from somewhere else... don't have art to handle. else if (exit != TILE_SIDE.UNMARKED) { // for now, we'll overwrite the first pass entry = e; exit = TILE_SIDE.UNMARKED; return; } entry = e; }
public void markExit(TILE_SIDE e) { // doubles back... undo tile if (e == entry) { entry = TILE_SIDE.UNMARKED; exit = TILE_SIDE.UNMARKED; return; } exit = e; }
public TileConfigurer() { //this.location = location; this.entry = TILE_SIDE.UNMARKED; this.exit = TILE_SIDE.UNMARKED; }