MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getExit

Method getExit

src/main/java/mudmap2/backend/Place.java:203–211  ·  view source on GitHub ↗

Gets the paths connected to an exit @param dir exit direction @return set of paths connected to that exit

(final String dir)

Source from the content-addressed store, hash-verified

201 * @return set of paths connected to that exit
202 */
203 public HashSet<Path> getExit(final String dir) {
204 HashSet<Path> ret = new HashSet<>();
205 for (final Path path : paths) {
206 if (path.getExit(this).equals(dir)) {
207 ret.add(path);
208 }
209 }
210 return ret;
211 }
212
213 /**
214 * Gets the paths to a place

Callers 4

testGetExitMethod · 0.95
keyPressedMethod · 0.95
createMethod · 0.95
getPathsToMethod · 0.45

Calls

no outgoing calls

Tested by 1

testGetExitMethod · 0.76