Source files: 42
Click here to show/hide file namesSource files:
detect/renamingLoop/renamingLoop/game/JPacmanGame.java,
detect/renamingLoop/renamingLoop/game/Game.java,
detect/renamingLoop/renamingLoop/game/GameObject.java,
detect/renamingLoop/renamingLoop/game/Item.java,
detect/renamingLoop/renamingLoop/map/Path.java,
detect/renamingLoop/renamingLoop/map/Map.java,
detect/renamingLoop/renamingLoop/map/PathFinder.java,
detect/renamingLoop/renamingLoop/util/RequestedDirectionBuffer.java,
detect/renamingLoop/renamingLoop/util/Direction.java,
detect/renamingLoop/renamingLoop/editor/EditorFrame.java,
detect/renamingLoop/renamingLoop/editor/EditorMarker.java,
detect/renamingLoop/renamingLoop/actors/Actor.java,
detect/renamingLoop/renamingLoop/actors/Player.java,
detect/renamingLoop/renamingLoop/actors/Ghost.java,
detect/renamingLoop/renamingLoop/state/StateEditor.java,
detect/renamingLoop/renamingLoop/state/State.java,
detect/renamingLoop/renamingLoop/state/StateMenu.java,
detect/renamingLoop/renamingLoop/state/StateGame.java,
detect/renamingLoop/renamingLoop/state/StateScoreboard.java,
detect/renamingLoop/renamingLoop/ai/AIManager.java,
detect/renamingLoop/renamingLoop/ai/AStarHeuristic.java,
detect/renamingLoop/original/game/JPacmanGame.java,
detect/renamingLoop/original/game/Game.java,
detect/renamingLoop/original/game/GameObject.java,
detect/renamingLoop/original/game/Item.java,
detect/renamingLoop/original/map/Path.java,
detect/renamingLoop/original/map/Map.java,
detect/renamingLoop/original/map/PathFinder.java,
detect/renamingLoop/original/util/RequestedDirectionBuffer.java,
detect/renamingLoop/original/util/Direction.java,
detect/renamingLoop/original/editor/EditorFrame.java,
detect/renamingLoop/original/editor/EditorMarker.java,
detect/renamingLoop/original/actors/Actor.java,
detect/renamingLoop/original/actors/Player.java,
detect/renamingLoop/original/actors/Ghost.java,
detect/renamingLoop/original/state/StateEditor.java,
detect/renamingLoop/original/state/State.java,
detect/renamingLoop/original/state/StateMenu.java,
detect/renamingLoop/original/state/StateGame.java,
detect/renamingLoop/original/state/StateScoreboard.java,
detect/renamingLoop/original/ai/AIManager.java,
detect/renamingLoop/original/ai/AStarHeuristic.java
Clones detected: 54
1228 of 3670 lines are duplicates (33.46%)
Parameters
clustering_threshold = 10
distance_threshold = 200
size_threshold = 10
hashing_depth = 1
clusterize_using_hash = False
clusterize_using_dcup = False
Clone # 1
Distance between two fragments = 29
Clone size = 79
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 207 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 209 | |
btnSave = new JButton(); getContentPane().add(btnSave); btnSave.setText("Save"); btnSave.setBounds(12, 317, 70, 23); btnSave.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.saveMap(txtFilename.getText()); |
f1216 = new JButton(); getContentPane().add(f1216); f1216.setText("Save"); f1216.setBounds(12, 317, 70, 23); f1216.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v8) { f116.m718(f1016.getText()); |
|
btnLoad = new JButton(); getContentPane().add(btnLoad); btnLoad.setText("Load"); btnLoad.setBounds(87, 317, 68, 23); btnLoad.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.loadMap(txtFilename.getText()); |
f1116 = new JButton(); getContentPane().add(f1116); f1116.setText("Load"); f1116.setBounds(87, 317, 68, 23); f1116.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v9) { f116.m818(f1016.getText()); |
|
txtFilename = new JTextField(); getContentPane().add(txtFilename); txtFilename.setBounds(12, 345, 225, 23); txtFilename.setText("test.map"); |
f1016 = new JTextField(); getContentPane().add(f1016); f1016.setBounds(12, 345, 225, 23); f1016.setText("test.map"); |
|
btnNew = new JButton(); getContentPane().add(btnNew); btnNew.setText("New"); btnNew.setBounds(160, 317, 71, 23); btnNew.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.newMap(28, 31); |
f916 = new JButton(); getContentPane().add(f916); f916.setText("New"); f916.setBounds(160, 317, 71, 23); f916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v10) { f116.m618(28, 31); |
|
btnTeleport = new JButton(); getContentPane().add(btnTeleport); btnTeleport.setText("Teleport"); btnTeleport.setBounds(237, 218, 110, 23); btnTeleport.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_TELEPORT); editor.setMarkerTeleport(Integer.parseInt(txtTeleportX.getText()), Integer.parseInt(txtTeleportY.getText())); |
f816 = new JButton(); getContentPane().add(f816); f816.setText("Teleport"); f816.setBounds(237, 218, 110, 23); f816.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v11) { f116.m018(GameObject.f720); f116.m518(Integer.parseInt(f416.getText()), Integer.parseInt(f316.getText())); |
|
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
f716 = new JLabel(); getContentPane().add(f716); f716.setText("Teleport Settings"); f716.setBounds(237, 196, 123, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
|
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
|
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
f316 = new JTextArea(); getContentPane().add(f316); f316.setText("17"); f316.setBounds(280, 275, 82, 20); |
|
btnPowerup = new JButton(); getContentPane().add(btnPowerup); btnPowerup.setText("Powerup"); btnPowerup.setBounds(12, 65, 102, 23); btnPowerup.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_POWERUP); |
f1816 = new JButton(); getContentPane().add(f1816); f1816.setText("Powerup"); f1816.setBounds(12, 65, 102, 23); f1816.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v12) { f116.m018(GameObject.f120); |
|
lblGhosts = new JLabel(); getContentPane().add(lblGhosts); lblGhosts.setText("Ghost Settings"); lblGhosts.setBounds(272, 12, 76, 16); |
f1716 = new JLabel(); getContentPane().add(f1716); f1716.setText("Ghost Settings"); f1716.setBounds(272, 12, 76, 16); |
|
chkGhostTrapped = new JCheckBox(); getContentPane().add(chkGhostTrapped); chkGhostTrapped.setText("Trapped"); chkGhostTrapped.setBounds(360, 10, 100, 20); chkGhostTrapped.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { editor.setMarkerGhostTrapped(!editor.getMarkerGhostTrapped()); System.out.println(editor.getMarkerGhostTrapped()); |
f1616 = new JCheckBox(); getContentPane().add(f1616); f1616.setText("Trapped"); f1616.setBounds(360, 10, 100, 20); f1616.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent v13) { f116.m318(!f116.m418()); System.out.println(f116.m418()); |
Clone # 2
Distance between two fragments = 25
Clone size = 61
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 79 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 79 | |
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); | setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); | |
getContentPane().setLayout(null); | getContentPane().setLayout(null); | |
this.setTitle("Pacman Map Editor - Ramsey Kant"); | this.setTitle("Pacman Map Editor - Ramsey Kant"); | |
this.addWindowListener(new WindowAdapter() { @Override public void windowClosed(WindowEvent evt) { editor.getGame().requestChangeState(State.STATE_EXITING); |
this.addWindowListener(new WindowAdapter() { @Override public void windowClosed(WindowEvent v1) { f116.m03().m713(State.f53); |
|
jMenuBar1 = new JMenuBar(); setJMenuBar(jMenuBar1); { jMenuFile = new JMenu(); jMenuBar1.add(jMenuFile); jMenuFile.setText("File"); { jItemLoad = new JMenuItem(); jMenuFile.add(jItemLoad); jItemLoad.setText("Load"); } { jItemSave = new JMenuItem(); jMenuFile.add(jItemSave); jItemSave.setText("Save"); } { jItemSaveAs = new JMenuItem(); jMenuFile.add(jItemSaveAs); jItemSaveAs.setText("Save As.."); } { jSeperatorFile = new JSeparator(); jMenuFile.add(jSeperatorFile); } { jItemExit = new JMenuItem(); jMenuFile.add(jItemExit); jItemExit.setText("Exit"); |
f2516 = new JMenuBar(); setJMenuBar(f2516); { f2416 = new JMenu(); f2516.add(f2416); f2416.setText("File"); { f2316 = new JMenuItem(); f2416.add(f2316); f2316.setText("Load"); } { f2216 = new JMenuItem(); f2416.add(f2216); f2216.setText("Save"); } { f216 = new JMenuItem(); f2416.add(f216); f216.setText("Save As.."); } { f2116 = new JSeparator(); f2416.add(f2116); } { f2016 = new JMenuItem(); f2416.add(f2016); f2016.setText("Exit"); |
|
btnWall = new JButton(); getContentPane().add(btnWall); btnWall.setText("Wall"); btnWall.setBounds(12, 218, 59, 23); btnWall.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_WALL); |
f3016 = new JButton(); getContentPane().add(f3016); f3016.setText("Wall"); f3016.setBounds(12, 218, 59, 23); f3016.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f116.m018(GameObject.f620); |
|
btnDot = new JButton(); getContentPane().add(btnDot); btnDot.setText("Dot"); btnDot.setBounds(12, 36, 59, 23); btnDot.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_DOT); |
f2916 = new JButton(); getContentPane().add(f2916); f2916.setText("Dot"); f2916.setBounds(12, 36, 59, 23); f2916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f116.m018(GameObject.f020); |
|
btnPacman = new JButton(); getContentPane().add(btnPacman); btnPacman.setText("Pacman"); btnPacman.setBounds(136, 36, 110, 23); btnPacman.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_PLAYER); |
f2816 = new JButton(); getContentPane().add(f2816); f2816.setText("Pacman"); f2816.setBounds(136, 36, 110, 23); f2816.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f116.m018(GameObject.f320); |
|
jSeparator1 = new JSeparator(); getContentPane().add(jSeparator1); jSeparator1.setBounds(12, 301, 360, 10); |
f2716 = new JSeparator(); getContentPane().add(f2716); f2716.setBounds(12, 301, 360, 10); |
|
lblPlaceableObjs = new JLabel(); getContentPane().add(lblPlaceableObjs); lblPlaceableObjs.setText("Placeable Objects"); lblPlaceableObjs.setBounds(12, 12, 129, 16); |
f2616 = new JLabel(); getContentPane().add(f2616); f2616.setText("Placeable Objects"); f2616.setBounds(12, 12, 129, 16); |
|
jWallTypeLabel = new JLabel(); getContentPane().add(jWallTypeLabel); jWallTypeLabel.setText("Wall Type"); jWallTypeLabel.setBounds(12, 196, 82, 16); |
f1916 = new JLabel(); getContentPane().add(f1916); f1916.setText("Wall Type"); f1916.setBounds(12, 196, 82, 16); |
Clone # 3
Distance between two fragments = 20
Clone size = 34
Source file "detect/renamingLoop/original/game/Game.java" The first line is 67 | Source file "detect/renamingLoop/renamingLoop/game/Game.java" The first line is 67 | |
private void init() { // Debug vars debugEnabled = false; startMap = "test.map"; changeStateRequested = false; // Setup the game frame frame = new Frame("Pacman"); frame.setLayout(null); setBounds(0, 0, RES_X, RES_Y); frame.add(this); frame.setSize(RES_X, RES_Y); frame.setResizable(false); frame.setVisible(true); // Set the exit handler with an anonymous class frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { // Exit main thread runMainThread = false; } }); // Setup double buffering setIgnoreRepaint(true); // We'll handle repainting createBufferStrategy(2); m_gBuffer = getBufferStrategy(); runMainThread = true; |
private void m013() { // Debug vars f113 = false; f1113 = "test.map"; f913 = false; // Setup the game frame f313 = new Frame("Pacman"); f313.setLayout(null); setBounds(0, 0, f413, f513); f313.add(this); f313.setSize(f413, f513); f313.setResizable(false); f313.setVisible(true); // Set the exit handler with an anonymous class f313.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent v2) { // Exit main thread f213 = false; } }); // Setup double buffering setIgnoreRepaint(true); // We'll handle repainting createBufferStrategy(2); f613 = getBufferStrategy(); f213 = true; |
|
public Frame getFrame() { return frame; |
public Frame m113() { return f313; |
|
public Graphics2D getGraphicsContext() { return (Graphics2D) m_gBuffer.getDrawGraphics(); |
public Graphics2D m213() { return (Graphics2D) f613.getDrawGraphics(); |
|
public String getStartMap() { return startMap; |
public String m313() { return f1113; |
|
public void setStartMap(String m) { startMap = m; |
public void m413(String v3) { f1113 = v3; |
|
public boolean isDebugEnabled() { return debugEnabled; |
public boolean m513() { return f113; |
|
public void toggleDebug() { debugEnabled = !debugEnabled; |
public void m613() { f113 = !f113; |
|
public void requestChangeState(int state) { requestedState = state; changeStateRequested = true; |
public void m713(int v4) { f1013 = v4; f913 = true; |
Clone # 4
Distance between two fragments = 36
Clone size = 32
Source file "detect/renamingLoop/original/state/StateEditor.java" The first line is 74 | Source file "detect/renamingLoop/renamingLoop/state/StateEditor.java" The first line is 74 | |
public void setMarkerObjectType(int t) { markerObjectType = t; |
public void m018(int v1) { f418 = v1; |
|
public void setMarkerWallType(byte t) { markerWallType = t; |
public void m118(byte v2) { f518 = v2; |
|
public void setMarkerGhostType(String t) { markerGhostType = t; |
public void m218(String v3) { f618 = v3; |
|
public void setMarkerGhostTrapped(boolean t) { markerGhostTrapped = t; |
public void m318(boolean v4) { f718 = v4; |
|
public boolean getMarkerGhostTrapped() { return markerGhostTrapped; |
public boolean m418() { return f718; |
|
public void setMarkerTeleport(int x, int y) { markerTeleportX = x; markerTeleportY = y; |
public void m518(int v5, int v6) { f818 = v5; f918 = v6; |
|
@Override public void reset() { // Force previous references out of scope marker = null; map = null; markerObjectType = GameObject.OBJECT_DOT; |
@Override public void m13() { // Force previous references out of scope f118 = null; f318 = null; f418 = GameObject.f020; |
|
public void newMap(int width, int height) { // Setup the game map game.getGraphicsContext().setBackground(Color.BLACK); mapWidth = width; mapHeight = height; map = new Map(28, 31, 32); // Create the marker (but don't put it "in" the map) marker = new EditorMarker(Color.GREEN, map, 0, 0); |
public void m618(int v7, int v8) { // Setup the game map f63.m213().setBackground(Color.BLACK); f1018 = v7; f1118 = v8; f318 = new Map(28, 31, 32); // Create the marker (but don't put it "in" the map) f118 = new EditorMarker(Color.GREEN, f318, 0, 0); |
|
public void saveMap(String filename) { map.write(System.getProperty("user.dir") + "\\" + filename); |
public void m718(String v9) { f318.m239(System.getProperty("user.dir") + "\\" + v9); |
|
public void loadMap(String filename) { // Setup the game map game.getGraphicsContext().setBackground(Color.BLACK); map = new Map(System.getProperty("user.dir") + "\\" + filename, 32); mapWidth = map.getWidth(); mapHeight = map.getHeight(); // Create the marker (but don't put it "in" the map) marker = new EditorMarker(Color.GREEN, map, 0, 0); |
public void m818(String v10) { // Setup the game map f63.m213().setBackground(Color.BLACK); f318 = new Map(System.getProperty("user.dir") + "\\" + v10, 32); f1018 = f318.m09(); f1118 = f318.m19(); // Create the marker (but don't put it "in" the map) f118 = new EditorMarker(Color.GREEN, f318, 0, 0); |
Clone # 5
Distance between two fragments = 11
Clone size = 27
Source file "detect/renamingLoop/original/game/Game.java" The first line is 227 | Source file "detect/renamingLoop/renamingLoop/game/Game.java" The first line is 216 | |
if (currentState != null) { frame.removeKeyListener(currentState); removeKeyListener(currentState); currentState.end(); |
if (f813 != null) { f313.removeKeyListener(f813); removeKeyListener(f813); f813.m33(); |
|
stateId = state; | f713 = v9; | |
switch (stateId) { case State.STATE_GAME: currentState = new StateGame(this); break; case State.STATE_SCOREBOARD: currentState = new StateScoreboard(this); /* * StateGame sb = new StateScoreboard(); int newScore = 0; * * // If the previous state was STATE_GAME, pull the session * score and pass it to the scoreboard if(currentState * instanceof StateGame) * sb.addScore((int)((StateGame)currentState * ).getSessionScore())); * * currentState = sb; */ break; case State.STATE_EDITOR: currentState = new StateEditor(this); break; case State.STATE_MENU: currentState = new StateMenu(this); break; case State.STATE_EXITING: currentState = null; runMainThread = false; break; default: break; |
switch (f713) { case State.f23: f813 = new StateGame(this); break; case State.f13: f813 = new StateScoreboard(this); /* * StateGame sb = new StateScoreboard(); int newScore = 0; * * // If the previous state was STATE_GAME, pull the session * score and pass it to the scoreboard if(currentState * instanceof StateGame) * sb.addScore((int)((StateGame)currentState * ).getSessionScore())); * * currentState = sb; */ break; case State.f43: f813 = new StateEditor(this); break; case State.f03: f813 = new StateMenu(this); break; case State.f53: f813 = null; f213 = false; break; default: break; |
|
if (currentState != null) { frame.addKeyListener(currentState); addKeyListener(currentState); |
if (f813 != null) { f313.addKeyListener(f813); addKeyListener(f813); |
Clone # 6
Distance between two fragments = 18
Clone size = 21
Source file "detect/renamingLoop/original/map/Map.java" The first line is 414 | Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 421 | |
public int findDistance(GameObject start, GameObject end) { return (int) Math.sqrt(Math.pow(Math.abs(start.getX() - end.getX()), 2) + Math.pow(Math.abs(start.getY() - end.getY()), 2)); |
public int m179(GameObject v34, GameObject v35) { return (int) Math.sqrt(Math.pow(Math.abs(v34.m320() - v35.m320()), 2) + Math.pow(Math.abs(v34.m420() - v35.m420()), 2)); |
|
public boolean isEmpty(int x, int y) { // Check bounds if (x < 0 || y < 0 || x >= mapWidth || y >= mapHeight) { return false; } // Check if the Object is hitting something on the collideMap if (getCollidable(x, y) != 0) { return false; } // Check if object is hitting something on the itemMap if (getItem(x, y) != null) { return false; } // Actor collission if (getActor(x, y, false) != null) { return false; } return true; |
public boolean m189(int v36, int v37) { // Check bounds if (v36 < 0 || v37 < 0 || v36 >= f09 || v37 >= f19) { return false; } // Check if the Object is hitting something on the collideMap if (m99(v36, v37) != 0) { return false; } // Check if object is hitting something on the itemMap if (m109(v36, v37) != null) { return false; } // Actor collission if (m139(v36, v37, false) != null) { return false; } return true; |
|
public boolean canMove(Actor act, int x, int y) { if (act == null) { return false; } // Check bounds if (!isInBounds(x, y)) { return false; } // Check if the Object is hitting something on the collideMap if (getCollidable(x, y) != 0) { return false; } // Allow the Actor to move return true; |
public boolean m199(Actor v38, int v39, int v40) { if (v38 == null) { return false; } // Check bounds if (!m219(v39, v40)) { return false; } // Check if the Object is hitting something on the collideMap if (m99(v39, v40) != 0) { return false; } // Allow the Actor to move return true; |
Clone # 7
Distance between two fragments = 16
Clone size = 19
Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 99 | Source file "detect/renamingLoop/original/map/Map.java" The first line is 99 | |
public int m09() { return f09; |
public int getWidth() { return mapWidth; |
|
public int m19() { return f19; |
public int getHeight() { return mapHeight; |
|
public int m29() { return f89.size(); |
public int getNumActors() { return actorList.size(); |
|
public byte[][] m39() { return f69; |
public byte[][] getCollidableMap() { return collideMap; |
|
public Item[][] m49() { return f79; |
public Item[][] getItemMap() { return itemMap; |
|
public int m59() { return f99; |
public int getDotsRemaining() { return dotsRemaining; |
|
public boolean m69(int v5, int v6, byte v7) { // Check bounds if (v5 < 0 || v6 < 0 || v5 >= f09 || v6 >= f19) { return false; } // Check if theres already something there if (f69[v5][v6] > 0) { return false; } // Add to the collideMap f69[v5][v6] = v7; return true; |
public boolean addCollidable(int x, int y, byte t) { // Check bounds if (x < 0 || y < 0 || x >= mapWidth || y >= mapHeight) { return false; } // Check if theres already something there if (collideMap[x][y] > 0) { return false; } // Add to the collideMap collideMap[x][y] = t; return true; |
Clone # 8
Distance between two fragments = 26
Clone size = 19
Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 317 | Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 346 | |
public float m95(Actor v36, int v37, int v38, int v39, int v40) { return f25.m229(v36, v37, v38, v39, v40); |
public float getMovementCost(Actor mover, int sx, int sy, int tx, int ty) { return map.getCost(mover, sx, sy, tx, ty); |
|
public float m105(Actor v41, int v42, int v43, int v44, int v45) { return f65.m017(f25, v41, v42, v43, v44, v45); |
public float getHeuristicCost(Actor mover, int x, int y, int tx, int ty) { return heuristic.getCost(map, mover, x, y, tx, ty); |
|
private class SortedNodeList { /** The list of elements */ private final ArrayList<Node> f05 = new ArrayList<Node>(); /** * Retrieve the first element from the list * * @return The first element from the list */ public Object m05() { return f05.get(0); } /** * Empty the list */ public void m15() { f05.clear(); } /** * Add an element to the list - causes sorting * * @param v46 * The element to add */ public void m25(Node v46) { f05.add(v46); Collections.sort(f05); } /** * Remove an element from the list * * @param v47 * The element to remove */ public void m35(Object v47) { f05.remove(v47); } /** * Get the number of elements in the list * * @return The number of element in the list */ public int m45() { return f05.size(); } /** * Check if an element is in the list * * @param v48 * The element to search for * @return True if the element is in the list */ public boolean m55(Object v48) { return f05.contains(v48); |
private class SortedNodeList { /** The list of elements */ private final ArrayList<Node> list = new ArrayList<Node>(); /** * Retrieve the first element from the list * * @return The first element from the list */ public Object first() { return list.get(0); } /** * Empty the list */ public void clear() { list.clear(); } /** * Add an element to the list - causes sorting * * @param o * The element to add */ public void add(Node o) { list.add(o); Collections.sort(list); } /** * Remove an element from the list * * @param o * The element to remove */ public void remove(Object o) { list.remove(o); } /** * Get the number of elements in the list * * @return The number of element in the list */ public int size() { return list.size(); } /** * Check if an element is in the list * * @param o * The element to search for * @return True if the element is in the list */ public boolean contains(Object o) { return list.contains(o); |
Clone # 9
Distance between two fragments = 8
Clone size = 17
Source file "detect/renamingLoop/original/state/StateGame.java" The first line is 271 | Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 265 | |
if (game.isDebugEnabled()) { g.setColor(Color.RED); g.drawString("DEBUG ON", 750, 650); /* * // Paint gridline overlay for(int i = 0; i < mapWidth; i++) * g.drawLine(i*map.CELL_SIZE, 0, i*map.CELL_SIZE, * mapHeight*map.CELL_SIZE); for(int i = 0; i < mapHeight; i++) * g.drawLine(0, i*map.CELL_SIZE, mapWidth*map.CELL_SIZE, * i*map.CELL_SIZE); */ // Player X,Y coordinates bottom right g.drawString("positionX: " + player.getX(), 750, 675); g.drawString("positionY: " + player.getY(), 750, 700); |
if (f63.m513()) { v5.setColor(Color.RED); v5.drawString("DEBUG ON", 750, 650); /* * // Paint gridline overlay for(int i = 0; i < mapWidth; i++) * g.drawLine(i*map.CELL_SIZE, 0, i*map.CELL_SIZE, * mapHeight*map.CELL_SIZE); for(int i = 0; i < mapHeight; i++) * g.drawLine(0, i*map.CELL_SIZE, mapWidth*map.CELL_SIZE, * i*map.CELL_SIZE); */ // Player X,Y coordinates bottom right v5.drawString("positionX: " + f08.m320(), 750, 675); v5.drawString("positionY: " + f08.m420(), 750, 700); |
|
if (gamePaused) { g.setColor(Color.RED); g.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); g.drawString("PAUSED", 750, 500); if (pauseTime > System.currentTimeMillis()) { g.drawString( "Pause ends in..." + ((pauseTime - System.currentTimeMillis()) / 1000), 750, 550); } if (pauseTime != 0 && System.currentTimeMillis() > pauseTime) { pauseTime = 0; gamePaused = false; } return; |
if (f78) { v5.setColor(Color.RED); v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); v5.drawString("PAUSED", 750, 500); if (f88 > System.currentTimeMillis()) { v5.drawString( "Pause ends in..." + ((f88 - System.currentTimeMillis()) / 1000), 750, 550); } if (f88 != 0 && System.currentTimeMillis() > f88) { f88 = 0; f78 = false; } return; |
Clone # 10
Distance between two fragments = 15
Clone size = 17
Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 159 | Source file "detect/renamingLoop/original/state/StateGame.java" The first line is 154 | |
v5.translate(10, 30); | g.translate(10, 30); | |
v5.setColor(Color.WHITE); | g.setColor(Color.WHITE); | |
v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | g.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | |
v5.drawString("PACMAN by Ramsey Kant", 680, 50); | g.drawString("PACMAN by Ramsey Kant", 680, 50); | |
v5.drawString("Score: " + f08.m115(), 750, 100); | g.drawString("Score: " + player.getScore(), 750, 100); | |
v5.drawString("Total: " + f58, 750, 150); | g.drawString("Total: " + sessionScore, 750, 150); | |
v5.drawString("Lives: " + f68, 750, 200); | g.drawString("Lives: " + livesRemaining, 750, 200); | |
v5.drawString("Level: " + f48, 750, 250); | g.drawString("Level: " + currentLevel, 750, 250); | |
if (!f78) { f28.m20(); f08.m520(); |
if (!gamePaused) { ai.process(); player.act(); |
|
if (f08.m36()) { m38(); return; |
if (player.isDead()) { lose(); return; |
|
if (f18.m59() <= 0) { m28(); return; |
if (map.getDotsRemaining() <= 0) { win(); return; |
Clone # 11
Distance between two fragments = 17
Clone size = 16
Source file "detect/renamingLoop/renamingLoop/actors/Ghost.java" The first line is 56 | Source file "detect/renamingLoop/original/actors/Ghost.java" The first line is 56 | |
public boolean m04() { return f44; |
public boolean isInFear() { return inFear; |
|
public void m14(boolean v5) { f44 = v5; |
public void setFear(boolean f) { inFear = f; |
|
public boolean m24() { return f34; |
public boolean isTrapped() { return trapped; |
|
public void m34(boolean v6) { f34 = v6; |
public void setTrapped(boolean t) { trapped = t; |
|
public boolean m44() { return f24; |
public boolean needsNewPath() { return needNewPath; |
|
public void m54(Path v7) { f14 = 1; f04 = v7; f24 = false; |
public void updatePath(Path p) { nextStepIdx = 1; path = p; needNewPath = false; |
|
public void m64(boolean v8) { f54 = v8; |
public void setDebugDrawPath(boolean d) { debugDrawPath = d; |
Clone # 12
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 269 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
Clone # 13
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 271 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
|
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
f316 = new JTextArea(); getContentPane().add(f316); f316.setText("17"); f316.setBounds(280, 275, 82, 20); |
Clone # 14
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 269 | |
f716 = new JLabel(); getContentPane().add(f716); f716.setText("Teleport Settings"); f716.setBounds(237, 196, 123, 16); |
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
|
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
Clone # 15
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 271 | |
f716 = new JLabel(); getContentPane().add(f716); f716.setText("Teleport Settings"); f716.setBounds(237, 196, 123, 16); |
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
|
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
|
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
|
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
f316 = new JTextArea(); getContentPane().add(f316); f316.setText("17"); f316.setBounds(280, 275, 82, 20); |
Clone # 16
Distance between two fragments = 10
Clone size = 16
Source file "detect/renamingLoop/original/map/Map.java" The first line is 487 | Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 496 | |
switch (dir) { case up: y--; break; case right: x++; break; case down: y++; break; case left: x--; break; case none: return true; |
switch (v42) { case f07: v44--; break; case f17: v43++; break; case f27: v44++; break; case f37: v43--; break; case f47: return true; |
|
return canMove(act, x, y); | return m199(v41, v43, v44); |
Clone # 17
Distance between two fragments = 9
Clone size = 16
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 122 | |
btnDot = new JButton(); getContentPane().add(btnDot); btnDot.setText("Dot"); btnDot.setBounds(12, 36, 59, 23); btnDot.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_DOT); |
btnWall = new JButton(); getContentPane().add(btnWall); btnWall.setText("Wall"); btnWall.setBounds(12, 218, 59, 23); btnWall.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_WALL); |
|
btnPacman = new JButton(); getContentPane().add(btnPacman); btnPacman.setText("Pacman"); btnPacman.setBounds(136, 36, 110, 23); btnPacman.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_PLAYER); |
btnDot = new JButton(); getContentPane().add(btnDot); btnDot.setText("Dot"); btnDot.setBounds(12, 36, 59, 23); btnDot.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_DOT); |
Clone # 18
Distance between two fragments = 13
Clone size = 16
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 122 | |
btnDot = new JButton(); getContentPane().add(btnDot); btnDot.setText("Dot"); btnDot.setBounds(12, 36, 59, 23); btnDot.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_DOT); |
f3016 = new JButton(); getContentPane().add(f3016); f3016.setText("Wall"); f3016.setBounds(12, 218, 59, 23); f3016.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f116.m018(GameObject.f620); |
|
btnPacman = new JButton(); getContentPane().add(btnPacman); btnPacman.setText("Pacman"); btnPacman.setBounds(136, 36, 110, 23); btnPacman.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_PLAYER); |
f2916 = new JButton(); getContentPane().add(f2916); f2916.setText("Dot"); f2916.setBounds(12, 36, 59, 23); f2916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f116.m018(GameObject.f020); |
Clone # 19
Distance between two fragments = 13
Clone size = 16
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 122 | |
f2916 = new JButton(); getContentPane().add(f2916); f2916.setText("Dot"); f2916.setBounds(12, 36, 59, 23); f2916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f116.m018(GameObject.f020); |
btnWall = new JButton(); getContentPane().add(btnWall); btnWall.setText("Wall"); btnWall.setBounds(12, 218, 59, 23); btnWall.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_WALL); |
|
f2816 = new JButton(); getContentPane().add(f2816); f2816.setText("Pacman"); f2816.setBounds(136, 36, 110, 23); f2816.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f116.m018(GameObject.f320); |
btnDot = new JButton(); getContentPane().add(btnDot); btnDot.setText("Dot"); btnDot.setBounds(12, 36, 59, 23); btnDot.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_DOT); |
Clone # 20
Distance between two fragments = 11
Clone size = 16
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 122 | |
f2916 = new JButton(); getContentPane().add(f2916); f2916.setText("Dot"); f2916.setBounds(12, 36, 59, 23); f2916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f116.m018(GameObject.f020); |
f3016 = new JButton(); getContentPane().add(f3016); f3016.setText("Wall"); f3016.setBounds(12, 218, 59, 23); f3016.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f116.m018(GameObject.f620); |
|
f2816 = new JButton(); getContentPane().add(f2816); f2816.setText("Pacman"); f2816.setBounds(136, 36, 110, 23); f2816.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f116.m018(GameObject.f320); |
f2916 = new JButton(); getContentPane().add(f2916); f2916.setText("Dot"); f2916.setBounds(12, 36, 59, 23); f2916.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f116.m018(GameObject.f020); |
Clone # 21
Distance between two fragments = 5
Clone size = 16
Source file "detect/renamingLoop/original/state/StateMenu.java" The first line is 83 | Source file "detect/renamingLoop/renamingLoop/state/StateMenu.java" The first line is 83 | |
g.setColor(Color.YELLOW); | v5.setColor(Color.YELLOW); | |
g.setFont(new Font("Comic Sans MS", Font.BOLD, 50)); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 50)); | |
g.fillArc(56, 92, 100, 100, 35, 270); // First pacman | v5.fillArc(56, 92, 100, 100, 35, 270); // First pacman | |
g.drawString("PACMAN", 350, 180); | v5.drawString("PACMAN", 350, 180); | |
g.fillArc(780, 92, 100, 100, 35, 270); | v5.fillArc(780, 92, 100, 100, 35, 270); | |
g.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | |
g.drawString("Play Game", 380, 300); | v5.drawString("Play Game", 380, 300); | |
g.drawString("Scoreboard", 380, 340); | v5.drawString("Scoreboard", 380, 340); | |
g.drawString("Exit", 380, 380); | v5.drawString("Exit", 380, 380); | |
if (mapList.length > 0) { g.drawString("Current Map: " + mapList[currentMapOption], 380, 600); } else { g.drawString( "No maps detected. Have you placed the maps file in the same directory as the program?", 100, 600); |
if (f411.length > 0) { v5.drawString("Current Map: " + f411[f311], 380, 600); } else { v5.drawString( "No maps detected. Have you placed the maps file in the same directory as the program?", 100, 600); |
|
g.setColor(Color.RED); | v5.setColor(Color.RED); | |
g.fillRect(cursorX, cursorY, 150, 5); | v5.fillRect(f011, f111, 150, 5); |
Clone # 22
Distance between two fragments = 9
Clone size = 15
Source file "detect/renamingLoop/original/state/State.java" The first line is 43 | Source file "detect/renamingLoop/renamingLoop/state/State.java" The first line is 43 | |
public Game getGame() { return game; |
public Game m03() { return f63; |
|
public abstract void reset(); | public abstract void m13(); | |
public abstract void logic(); | public abstract void m23(); | |
public abstract void end(); | public abstract void m33(); | |
@Override public void keyReleased(KeyEvent e) { |
@Override public void keyReleased(KeyEvent v1) { |
|
@Override public void keyTyped(KeyEvent e) { // Esc switch (e.getKeyChar()) { case 27: game.requestChangeState(STATE_EXITING); break; default: break; |
@Override public void keyTyped(KeyEvent v2) { // Esc switch (v2.getKeyChar()) { case 27: f63.m713(f53); break; default: break; |
Clone # 23
Distance between two fragments = 10
Clone size = 15
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 186 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 188 | |
if (sType.equals("Vertical")) { editor.setMarkerWallType(GameObject.WALL_VERTICAL); } else if (sType.equals("Horizontal")) { editor.setMarkerWallType(GameObject.WALL_HORIZONTAL); } else if (sType.equals("Top Left")) { editor.setMarkerWallType(GameObject.WALL_TOPLEFT); } else if (sType.equals("Top Right")) { editor.setMarkerWallType(GameObject.WALL_TOPRIGHT); } else if (sType.equals("Bottom Left")) { editor.setMarkerWallType(GameObject.WALL_BOTTOMLEFT); } else if (sType.equals("Bottom Right")) { editor.setMarkerWallType(GameObject.WALL_BOTTOMRIGHT); } else if (sType.equals("Ghost Barrier")) { editor.setMarkerWallType(GameObject.WALL_GHOSTBARRIER); } else { editor.setMarkerWallType(GameObject.WALL_HORIZONTAL); |
if (v7.equals("Vertical")) { f116.m118(GameObject.f820); } else if (v7.equals("Horizontal")) { f116.m118(GameObject.f920); } else if (v7.equals("Top Left")) { f116.m118(GameObject.f1020); } else if (v7.equals("Top Right")) { f116.m118(GameObject.f1120); } else if (v7.equals("Bottom Left")) { f116.m118(GameObject.f1220); } else if (v7.equals("Bottom Right")) { f116.m118(GameObject.f1320); } else if (v7.equals("Ghost Barrier")) { f116.m118(GameObject.f1420); } else { f116.m118(GameObject.f920); |
Clone # 24
Distance between two fragments = 9
Clone size = 15
Source file "detect/renamingLoop/original/state/StateMenu.java" The first line is 135 | Source file "detect/renamingLoop/renamingLoop/state/StateMenu.java" The first line is 135 | |
switch (currentOption) { case 0: // Play game if (mapList.length > 0) { game.setStartMap(mapList[currentMapOption]); game.requestChangeState(STATE_GAME); } break; case 1: // Scoreboard game.requestChangeState(STATE_SCOREBOARD); break; case 2: // Exit game.requestChangeState(STATE_EXITING); break; default: break; |
switch (f211) { case 0: // Play game if (f411.length > 0) { f63.m413(f411[f311]); f63.m713(f23); } break; case 1: // Scoreboard f63.m713(f13); break; case 2: // Exit f63.m713(f53); break; default: break; |
|
break; | break; |
Clone # 25
Distance between two fragments = 16
Clone size = 14
Source file "detect/renamingLoop/renamingLoop/actors/Actor.java" The first line is 95 | Source file "detect/renamingLoop/original/actors/Actor.java" The first line is 95 | |
public int m06() { return f16; |
public int getSpawnX() { return spawnX; |
|
public int m16() { return f26; |
public int getSpawnY() { return spawnY; |
|
public void m26(boolean v5) { f06 = v5; |
public void setDead(boolean s) { isDead = s; |
|
public boolean m36() { return f06; |
public boolean isDead() { return isDead; |
|
public void m46(float v6) { f96 = v6; |
public void setSpeed(float s) { speed = s; |
|
public float m56() { return f96; |
public float getSpeed() { return speed; |
|
public void m66(Direction v7) { f46.m12(v7); |
public void setMoveDirection(Direction dir) { requestedMoveDirBuffer.setRequestedDirection(dir); |
Clone # 26
Distance between two fragments = 19
Clone size = 14
Source file "detect/renamingLoop/renamingLoop/map/Path.java" The first line is 27 | Source file "detect/renamingLoop/original/map/Path.java" The first line is 27 | |
public int m010() { return f010.size(); |
public int getLength() { return steps.size(); |
|
public Step m110(int v0) { return f010.get(v0); |
public Step getStep(int index) { return steps.get(index); |
|
public int m210(int v1) { return m110(v1).f010; |
public int getX(int index) { return getStep(index).x; |
|
public int m310(int v2) { return m110(v2).f110; |
public int getY(int index) { return getStep(index).y; |
|
public void m410(int v3, int v4) { f010.add(new Step(v3, v4)); |
public void appendStep(int x, int y) { steps.add(new Step(x, y)); |
|
public void m510(int v5, int v6) { f010.add(0, new Step(v5, v6)); |
public void prependStep(int x, int y) { steps.add(0, new Step(x, y)); |
|
public boolean m610(int v7, int v8) { return f010.contains(new Step(v7, v8)); |
public boolean contains(int x, int y) { return steps.contains(new Step(x, y)); |
Clone # 27
Distance between two fragments = 13
Clone size = 14
Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 305 | Source file "detect/renamingLoop/original/state/StateGame.java" The first line is 311 | |
@Override public void m33() { // Cleanup f08 = null; f18 = null; |
@Override public void end() { // Cleanup player = null; map = null; |
|
public void m28() { f58 += f08.m115(); m18(true); |
public void win() { sessionScore += player.getScore(); respawn(true); |
|
public void m38() { f68--; if (f68 > 0) { m18(false); } else { if (f48 == 1) { f58 = f08.m115(); // win() never called, so // score is the 1st level // score } f63.m713(State.f13); |
public void lose() { livesRemaining--; if (livesRemaining > 0) { respawn(false); } else { if (currentLevel == 1) { sessionScore = player.getScore(); // win() never called, so // score is the 1st level // score } game.requestChangeState(State.STATE_SCOREBOARD); |
Clone # 28
Distance between two fragments = 19
Clone size = 14
Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 240 | Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 209 | |
protected Node getFirstInOpen() { return (Node) open.first(); |
protected Node m15() { return (Node) f15.m05(); |
|
protected void addToOpen(Node node) { open.add(node); |
protected void m25(Node v24) { f15.m25(v24); |
|
protected boolean inOpenList(Node node) { return open.contains(node); |
protected boolean m35(Node v25) { return f15.m55(v25); |
|
protected void removeFromOpen(Node node) { open.remove(node); |
protected void m45(Node v26) { f15.m35(v26); |
|
protected void addToClosed(Node node) { closed.add(node); |
protected void m55(Node v27) { f05.add(v27); |
|
protected boolean inClosedList(Node node) { return closed.contains(node); |
protected boolean m65(Node v28) { return f05.contains(v28); |
|
protected void removeFromClosed(Node node) { closed.remove(node); |
protected void m75(Node v29) { f05.remove(v29); |
Clone # 29
Distance between two fragments = 7
Clone size = 12
Source file "detect/renamingLoop/original/state/StateEditor.java" The first line is 359 | Source file "detect/renamingLoop/renamingLoop/state/StateEditor.java" The first line is 367 | |
if (markerGhostType.equals("Blinky")) { map.addActor(new Ghost(Color.RED, map, marker.getX(), marker.getY(), markerGhostTrapped)); } else if (markerGhostType.equals("Pinky")) { map.addActor(new Ghost(Color.PINK, map, marker.getX(), marker.getY(), markerGhostTrapped)); } else if (markerGhostType.equals("Inky")) { map.addActor(new Ghost(Color.CYAN, map, marker.getX(), marker.getY(), markerGhostTrapped)); } else { map.addActor(new Ghost(Color.ORANGE, map, marker.getX(), marker.getY(), markerGhostTrapped)); |
if (f618.equals("Blinky")) { f318.m89(new Ghost(Color.RED, f318, f118.m320(), f118.m420(), f718)); } else if (f618.equals("Pinky")) { f318.m89(new Ghost(Color.PINK, f318, f118.m320(), f118.m420(), f718)); } else if (f618.equals("Inky")) { f318.m89(new Ghost(Color.CYAN, f318, f118.m320(), f118.m420(), f718)); } else { f318.m89(new Ghost(Color.ORANGE, f318, f118.m320(), f118.m420(), f718)); |
|
break; | break; |
Clone # 30
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 275 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
Clone # 31
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 277 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
f316 = new JTextArea(); getContentPane().add(f316); f316.setText("17"); f316.setBounds(280, 275, 82, 20); |
Clone # 32
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 275 | |
f716 = new JLabel(); getContentPane().add(f716); f716.setText("Teleport Settings"); f716.setBounds(237, 196, 123, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
Clone # 33
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 277 | |
f716 = new JLabel(); getContentPane().add(f716); f716.setText("Teleport Settings"); f716.setBounds(237, 196, 123, 16); |
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
|
f616 = new JLabel(); getContentPane().add(f616); f616.setText("Dest X:"); f616.setBounds(237, 249, 60, 16); |
f416 = new JTextField(); getContentPane().add(f416); f416.setText("13"); f416.setBounds(280, 246, 85, 23); |
|
f516 = new JLabel(); getContentPane().add(f516); f516.setText("Dest Y: "); f516.setBounds(235, 279, 52, 16); |
f316 = new JTextArea(); getContentPane().add(f316); f316.setText("17"); f316.setBounds(280, 275, 82, 20); |
Clone # 34
Distance between two fragments = 12
Clone size = 12
Source file "detect/renamingLoop/original/map/Map.java" The first line is 564 | Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 582 | |
item = itemMap[x][y]; | v57 = f79[v58][v59]; | |
if (item == null) { data.writeBoolean(false); continue; |
if (v57 == null) { v54.writeBoolean(false); continue; |
|
data.writeBoolean(true); | v54.writeBoolean(true); | |
data.writeInt(item.getType()); | v54.writeInt(v57.m020()); | |
data.writeInt(item.getX()); | v54.writeInt(v57.m320()); | |
data.writeInt(item.getY()); | v54.writeInt(v57.m420()); | |
data.writeInt(item.getColor().getRGB()); | v54.writeInt(v57.m120().getRGB()); | |
if (item.getType() == GameObject.OBJECT_TELEPORT) { data.writeInt(item.getTeleportX()); data.writeInt(item.getTeleportY()); |
if (v57.m020() == GameObject.f720) { v54.writeInt(v57.m112()); v54.writeInt(v57.m212()); |
Clone # 35
Distance between two fragments = 7
Clone size = 12
Source file "detect/renamingLoop/original/game/Item.java" The first line is 134 | Source file "detect/renamingLoop/renamingLoop/game/Item.java" The first line is 136 | |
switch (objType) { case OBJECT_DOT: g.fillArc(center_x - 4, center_y - 4, 8, 8, 0, 360); break; case OBJECT_POWERUP: g.fillArc(center_x - 8, center_y - 8, 16, 16, 0, 360); break; case OBJECT_TELEPORT: g.fillOval(center_x - 6, center_y - 8, 12, 16); break; default: break; |
switch (f1520) { case f020: v9.fillArc(v10 - 4, v11 - 4, 8, 8, 0, 360); break; case f120: v9.fillArc(v10 - 8, v11 - 8, 16, 16, 0, 360); break; case f720: v9.fillOval(v10 - 6, v11 - 8, 12, 16); break; default: break; |
Clone # 36
Distance between two fragments = 9
Clone size = 11
Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 633 | Source file "detect/renamingLoop/original/map/Map.java" The first line is 618 | |
v63 = new FileInputStream(v62); | fin = new FileInputStream(filename); | |
v64 = new DataInputStream(v63); | data = new DataInputStream(fin); | |
if (!v64.readUTF().equals("RKPACMAP")) { System.out.println("Not a map file!"); return; |
if (!data.readUTF().equals("RKPACMAP")) { System.out.println("Not a map file!"); return; |
|
f09 = v64.readInt(); | mapWidth = data.readInt(); | |
f19 = v64.readInt(); | mapHeight = data.readInt(); | |
f99 = 0; | dotsRemaining = 0; | |
f69 = new byte[f09][f19]; | collideMap = new byte[mapWidth][mapHeight]; | |
f79 = new Item[f09][f19]; | itemMap = new Item[mapWidth][mapHeight]; | |
f89 = new ArrayList<Actor>(); | actorList = new ArrayList<Actor>(); |
Clone # 37
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingLoop/original/state/StateGame.java" The first line is 65 | Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 65 | |
public int getSessionScore() { return sessionScore; |
public int m08() { return f58; |
|
@Override public void reset() { // Set game vars mapName = game.getStartMap(); currentLevel = 0; sessionScore = 0; livesRemaining = 99; pauseTime = 0; // Respawn (start level 1) respawn(true); |
@Override public void m13() { // Set game vars f38 = f63.m313(); f48 = 0; f58 = 0; f68 = 99; f88 = 0; // Respawn (start level 1) m18(true); |
Clone # 38
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingLoop/original/game/GameObject.java" The first line is 55 | Source file "detect/renamingLoop/renamingLoop/game/GameObject.java" The first line is 55 | |
public int getType() { return objType; |
public int m020() { return f1520; |
|
public Color getColor() { return objColor; |
public Color m120() { return f1620; |
|
public void setColor(Color c) { objColor = c; |
public void m220(Color v0) { f1620 = v0; |
|
public int getX() { return positionX; |
public int m320() { return f1720; |
|
public int getY() { return positionY; |
public int m420() { return f1820; |
Clone # 39
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingLoop/original/actors/Actor.java" The first line is 104 | Source file "detect/renamingLoop/original/actors/Ghost.java" The first line is 56 | |
public int getSpawnY() { return spawnY; |
public boolean isInFear() { return inFear; |
|
public void setDead(boolean s) { isDead = s; |
public void setFear(boolean f) { inFear = f; |
|
public boolean isDead() { return isDead; |
public boolean isTrapped() { return trapped; |
|
public void setSpeed(float s) { speed = s; |
public void setTrapped(boolean t) { trapped = t; |
|
public float getSpeed() { return speed; |
public boolean needsNewPath() { return needNewPath; |
Clone # 40
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingLoop/original/actors/Actor.java" The first line is 104 | Source file "detect/renamingLoop/renamingLoop/actors/Ghost.java" The first line is 56 | |
public int getSpawnY() { return spawnY; |
public boolean m04() { return f44; |
|
public void setDead(boolean s) { isDead = s; |
public void m14(boolean v5) { f44 = v5; |
|
public boolean isDead() { return isDead; |
public boolean m24() { return f34; |
|
public void setSpeed(float s) { speed = s; |
public void m34(boolean v6) { f34 = v6; |
|
public float getSpeed() { return speed; |
public boolean m44() { return f24; |
Clone # 41
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingLoop/renamingLoop/actors/Actor.java" The first line is 104 | Source file "detect/renamingLoop/original/actors/Ghost.java" The first line is 56 | |
public int m16() { return f26; |
public boolean isInFear() { return inFear; |
|
public void m26(boolean v5) { f06 = v5; |
public void setFear(boolean f) { inFear = f; |
|
public boolean m36() { return f06; |
public boolean isTrapped() { return trapped; |
|
public void m46(float v6) { f96 = v6; |
public void setTrapped(boolean t) { trapped = t; |
|
public float m56() { return f96; |
public boolean needsNewPath() { return needNewPath; |
Clone # 42
Distance between two fragments = 12
Clone size = 10
Source file "detect/renamingLoop/renamingLoop/actors/Actor.java" The first line is 104 | Source file "detect/renamingLoop/renamingLoop/actors/Ghost.java" The first line is 56 | |
public int m16() { return f26; |
public boolean m04() { return f44; |
|
public void m26(boolean v5) { f06 = v5; |
public void m14(boolean v5) { f44 = v5; |
|
public boolean m36() { return f06; |
public boolean m24() { return f34; |
|
public void m46(float v6) { f96 = v6; |
public void m34(boolean v6) { f34 = v6; |
|
public float m56() { return f96; |
public boolean m44() { return f24; |
Clone # 43
Distance between two fragments = 5
Clone size = 10
Source file "detect/renamingLoop/original/editor/EditorFrame.java" The first line is 339 | Source file "detect/renamingLoop/renamingLoop/editor/EditorFrame.java" The first line is 343 | |
btnGhost = new JButton(); getContentPane().add(btnGhost); btnGhost.setText("Add Ghost"); btnGhost.setBounds(272, 36, 146, 23); btnGhost.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { editor.setMarkerObjectType(GameObject.OBJECT_GHOST); |
f1416 = new JButton(); getContentPane().add(f1416); f1416.setText("Add Ghost"); f1416.setBounds(272, 36, 146, 23); f1416.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v17) { f116.m018(GameObject.f420); |
|
pack(); | pack(); | |
this.setSize(451, 547); | this.setSize(451, 547); |
Clone # 44
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingLoop/original/map/Map.java" The first line is 587 | Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 602 | |
data.writeInt(actorList.size()); | v54.writeInt(f89.size()); | |
for (final Actor a : actorList) { data.writeInt(a.getType()); data.writeInt(a.getX()); data.writeInt(a.getY()); data.writeInt(a.getColor().getRGB()); if (a.getType() == GameObject.OBJECT_GHOST) { data.writeBoolean(((Ghost) a).isTrapped()); |
for (final Actor v60 : f89) { v54.writeInt(v60.m020()); v54.writeInt(v60.m320()); v54.writeInt(v60.m420()); v54.writeInt(v60.m120().getRGB()); if (v60.m020() == GameObject.f420) { v54.writeBoolean(((Ghost) v60).m24()); |
|
data.close(); | v54.close(); | |
fout.close(); | v53.close(); |
Clone # 45
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingLoop/original/map/Map.java" The first line is 52 | Source file "detect/renamingLoop/renamingLoop/map/Map.java" The first line is 52 | |
mapWidth = w; | f09 = v0; | |
mapHeight = h; | f19 = v1; | |
SCALE = scale; | f59 = v2; | |
CELL_SIZE = (int) (32 * scale); | f29 = (int) (32 * v2); | |
WALL_THICKNESS = (int) (12 * scale); | f39 = (int) (12 * v2); | |
WALL_OVERLAP = (int) (10 * scale); | f49 = (int) (10 * v2); | |
dotsRemaining = 0; | f99 = 0; | |
collideMap = new byte[mapWidth][mapHeight]; | f69 = new byte[f09][f19]; | |
itemMap = new Item[mapWidth][mapHeight]; | f79 = new Item[f09][f19]; | |
actorList = new ArrayList<Actor>(); | f89 = new ArrayList<Actor>(); |
Clone # 46
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingLoop/original/state/StateEditor.java" The first line is 49 | Source file "detect/renamingLoop/renamingLoop/state/StateEditor.java" The first line is 49 | |
gameView = false; | f218 = false; | |
game.getFrame().setSize(1024, game.RES_Y); | f63.m113().setSize(1024, f63.f513); | |
editorFrame = new EditorFrame(this); | f018 = new EditorFrame(this); | |
editorFrame.setVisible(true); | f018.setVisible(true); | |
markerObjectType = GameObject.OBJECT_WALL; | f418 = GameObject.f620; | |
markerWallType = GameObject.WALL_VERTICAL; | f518 = GameObject.f820; | |
markerGhostType = "Blinky"; | f618 = "Blinky"; | |
markerGhostTrapped = false; | f718 = false; | |
markerTeleportX = 13; | f818 = 13; | |
markerTeleportY = 17; | f918 = 17; |
Clone # 47
Distance between two fragments = 9
Clone size = 10
Source file "detect/renamingLoop/original/actors/Player.java" The first line is 54 | Source file "detect/renamingLoop/renamingLoop/actors/Player.java" The first line is 54 | |
public void incrementScore(int amt) { m_iScore += amt; |
public void m015(int v3) { f015 += v3; |
|
public int getScore() { return m_iScore; |
public int m115() { return f015; |
|
public boolean isPoweredUp() { return isPowered; |
public boolean m215() { return f115; |
|
public void setPowerUp(boolean x) { isPowered = x; // If powered up, start the timer and increase speed temporarily if (isPowered) { poweredExpireTime = System.currentTimeMillis() + 10000; |
public void m315(boolean v4) { f115 = v4; // If powered up, start the timer and increase speed temporarily if (f115) { f215 = System.currentTimeMillis() + 10000; |
Clone # 48
Distance between two fragments = 29
Clone size = 10
Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 261 | Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 250 | |
protected boolean inOpenList(Node node) { return open.contains(node); |
protected void addToOpen(Node node) { open.add(node); |
|
protected void removeFromOpen(Node node) { open.remove(node); |
protected boolean inOpenList(Node node) { return open.contains(node); |
|
protected void addToClosed(Node node) { closed.add(node); |
protected void removeFromOpen(Node node) { open.remove(node); |
|
protected boolean inClosedList(Node node) { return closed.contains(node); |
protected void addToClosed(Node node) { closed.add(node); |
|
protected void removeFromClosed(Node node) { closed.remove(node); |
protected boolean inClosedList(Node node) { return closed.contains(node); |
Clone # 49
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 261 | Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 219 | |
protected boolean inOpenList(Node node) { return open.contains(node); |
protected void m25(Node v24) { f15.m25(v24); |
|
protected void removeFromOpen(Node node) { open.remove(node); |
protected boolean m35(Node v25) { return f15.m55(v25); |
|
protected void addToClosed(Node node) { closed.add(node); |
protected void m45(Node v26) { f15.m35(v26); |
|
protected boolean inClosedList(Node node) { return closed.contains(node); |
protected void m55(Node v27) { f05.add(v27); |
|
protected void removeFromClosed(Node node) { closed.remove(node); |
protected boolean m65(Node v28) { return f05.contains(v28); |
Clone # 50
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingLoop/original/map/PathFinder.java" The first line is 250 | Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 230 | |
protected void addToOpen(Node node) { open.add(node); |
protected boolean m35(Node v25) { return f15.m55(v25); |
|
protected boolean inOpenList(Node node) { return open.contains(node); |
protected void m45(Node v26) { f15.m35(v26); |
|
protected void removeFromOpen(Node node) { open.remove(node); |
protected void m55(Node v27) { f05.add(v27); |
|
protected void addToClosed(Node node) { closed.add(node); |
protected boolean m65(Node v28) { return f05.contains(v28); |
|
protected boolean inClosedList(Node node) { return closed.contains(node); |
protected void m75(Node v29) { f05.remove(v29); |
Clone # 51
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 219 | Source file "detect/renamingLoop/renamingLoop/map/PathFinder.java" The first line is 230 | |
protected void m25(Node v24) { f15.m25(v24); |
protected boolean m35(Node v25) { return f15.m55(v25); |
|
protected boolean m35(Node v25) { return f15.m55(v25); |
protected void m45(Node v26) { f15.m35(v26); |
|
protected void m45(Node v26) { f15.m35(v26); |
protected void m55(Node v27) { f05.add(v27); |
|
protected void m55(Node v27) { f05.add(v27); |
protected boolean m65(Node v28) { return f05.contains(v28); |
|
protected boolean m65(Node v28) { return f05.contains(v28); |
protected void m75(Node v29) { f05.remove(v29); |
Clone # 52
Distance between two fragments = 5
Clone size = 10
Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 251 | Source file "detect/renamingLoop/renamingLoop/state/StateEditor.java" The first line is 272 | |
final int v10; | final int v16; | |
v10 = f18.m29(); | v16 = f318.m29(); | |
int v11; | int v17; | |
v11 = 0; | v17 = 0; | |
while (v11 < v10) { final Actor v12; v12 = f18.m119(v11); if (v12 != null) { v12.m620(v5); } v11++; |
while (v17 < v16) { final Actor v18; v18 = f318.m119(v17); if (v18 != null) { v18.m620(v11); } v17++; |
Clone # 53
Distance between two fragments = 48
Clone size = 10
Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 155 | Source file "detect/renamingLoop/renamingLoop/state/StateMenu.java" The first line is 79 | |
final Graphics2D v5; | final Graphics2D v5; | |
v5 = f63.m213(); | v5 = f63.m213(); | |
v5.translate(10, 30); | v5.setColor(Color.YELLOW); | |
v5.setColor(Color.WHITE); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 50)); | |
v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | v5.fillArc(56, 92, 100, 100, 35, 270); // First pacman | |
v5.drawString("PACMAN by Ramsey Kant", 680, 50); | v5.drawString("PACMAN", 350, 180); | |
v5.drawString("Score: " + f08.m115(), 750, 100); | v5.fillArc(780, 92, 100, 100, 35, 270); | |
v5.drawString("Total: " + f58, 750, 150); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | |
v5.drawString("Lives: " + f68, 750, 200); | v5.drawString("Play Game", 380, 300); | |
v5.drawString("Level: " + f48, 750, 250); | v5.drawString("Scoreboard", 380, 340); |
Clone # 54
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingLoop/original/state/StateGame.java" The first line is 102 | Source file "detect/renamingLoop/renamingLoop/state/StateGame.java" The first line is 102 | |
currentLevel++; | f48++; | |
player = null; | f08 = null; | |
map = null; | f18 = null; | |
ai = null; | f28 = null; | |
game.getGraphicsContext().setBackground(Color.BLACK); | f63.m213().setBackground(Color.BLACK); | |
map = new Map(mapName, 0.75); | f18 = new Map(f38, 0.75); | |
mapWidth = map.getWidth(); | f98 = f18.m09(); | |
mapHeight = map.getHeight(); | f108 = f18.m19(); | |
player = map.getPlayer(); | f08 = f18.m129(); | |
ai = new AIManager(map, player, game.isDebugEnabled()); | f28 = new AIManager(f18, f08, f63.m513()); |
(*) Warning: the highlighting of differences is based on diff and doesn't reflect the tree-based clone detection algorithm.