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

Method cut

src/main/java/mudmap2/CopyPaste.java:74–82  ·  view source on GitHub ↗

Copies the places relatively to x, y @param places @param x @param y

(final HashSet<Place> places, final int x, final int y)

Source from the content-addressed store, hash-verified

72 * @param y
73 */
74 public static void cut(final HashSet<Place> places, final int x, final int y) {
75 resetCopy();
76
77 copyPlaces = (HashSet<Place>) places.clone();
78 copyMode = false;
79 copydx = x;
80 copydy = y;
81 generateLocations(x, y);
82 }
83
84 /**
85 * Calculates copyPlaceLocations relatively to x, y

Callers 2

actionPerformedMethod · 0.80
keyPressedMethod · 0.80

Calls 2

resetCopyMethod · 0.95
generateLocationsMethod · 0.95

Tested by

no test coverage detected