Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Coords2D pointedCoords = new Coords2D(((int)((t.getX())/15)), ((int)((t.getY())/15)));
- Map<Coords2D, BinaryState> structure = new HashMap<>();
- structure.put(pointedCoords, BinaryState.ALIVE);
- structure.put(new Coords2D(pointedCoords.x-1, pointedCoords.y), BinaryState.ALIVE);
- structure.put(new Coords2D(pointedCoords.x-2, pointedCoords.y), BinaryState.ALIVE);
- structure.put(new Coords2D(pointedCoords.x, pointedCoords.y-1), BinaryState.ALIVE);
- structure.put(new Coords2D(pointedCoords.x-1, pointedCoords.y-2), BinaryState.ALIVE);
- currentAutomaton.insertStructure(structure);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement