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

Method hasPlace

src/main/java/mudmap2/backend/Path.java:73–75  ·  view source on GitHub ↗

Checks whether a certain place is connected with this path @param place @return true if place is in this path

(Place place)

Source from the content-addressed store, hash-verified

71 * @return true if place is in this path
72 */
73 public boolean hasPlace(Place place){
74 return places[0] == place || places[1] == place;
75 }
76
77 /**
78 * Gets the exit directions

Callers 2

testHasPlaceMethod · 0.95
getPathsMethod · 0.80

Calls

no outgoing calls

Tested by 1

testHasPlaceMethod · 0.76