| 5 | import vmfWriter.Orientation; |
| 6 | |
| 7 | public class MaterialWallFilter implements MaterialFilter { |
| 8 | |
| 9 | private AddableManager manager; |
| 10 | private Orientation orientation; |
| 11 | |
| 12 | public MaterialWallFilter(AddableManager manager, Orientation orientation) { |
| 13 | this.manager = manager; |
| 14 | this.orientation = orientation; |
| 15 | } |
| 16 | |
| 17 | @Override |
| 18 | public boolean filter(int material) { |
| 19 | Addable addable = this.manager.getAddable(material); |
| 20 | if (addable != null) { |
| 21 | return this.manager.getAddable(material) |
| 22 | .hasWall(this.orientation); |
| 23 | } else { |
| 24 | return false; |
| 25 | } |
| 26 | } |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected