package model.world; import model.world.graphs.Edge; import model.world.graphs.Vertex; /** * File created by slassourreui on 25/11/17. */ public class Wall extends Edge { private boolean blocking; Wall() { super(); blocking = true; } public boolean isBlocking() { return blocking; } /** * @return the target cell of the wall (see drawing) * * ╔════════╦════════╦════════╦════════╗ * ║ source ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ target ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ ║ source ║ target ║ ║ * ╚════════╩════════╩════════╩════════╝ */ public Cell getSource() { return (Cell) super.getSource(); } /** * @return the source cell of the wall (see drawing) * * ╔════════╦════════╦════════╦════════╗ * ║ source ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ target ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ ║ ║ ║ ║ * ╠════════╬════════╬════════╬════════╣ * ║ ║ source ║ target ║ ║ * ╚════════╩════════╩════════╩════════╝ */ public Cell getTarget() { return (Cell) super.getTarget(); } }