Source files: 42
Click here to show/hide file namesSource files:
detect/renamingContraction/renamingContraction/game/JPacmanGame.java,
detect/renamingContraction/renamingContraction/game/Game.java,
detect/renamingContraction/renamingContraction/game/GameObject.java,
detect/renamingContraction/renamingContraction/game/Item.java,
detect/renamingContraction/renamingContraction/map/Path.java,
detect/renamingContraction/renamingContraction/map/Map.java,
detect/renamingContraction/renamingContraction/map/PathFinder.java,
detect/renamingContraction/renamingContraction/util/RequestedDirectionBuffer.java,
detect/renamingContraction/renamingContraction/util/Direction.java,
detect/renamingContraction/renamingContraction/editor/EditorFrame.java,
detect/renamingContraction/renamingContraction/editor/EditorMarker.java,
detect/renamingContraction/renamingContraction/actors/Actor.java,
detect/renamingContraction/renamingContraction/actors/Player.java,
detect/renamingContraction/renamingContraction/actors/Ghost.java,
detect/renamingContraction/renamingContraction/state/StateEditor.java,
detect/renamingContraction/renamingContraction/state/State.java,
detect/renamingContraction/renamingContraction/state/StateMenu.java,
detect/renamingContraction/renamingContraction/state/StateGame.java,
detect/renamingContraction/renamingContraction/state/StateScoreboard.java,
detect/renamingContraction/renamingContraction/ai/AIManager.java,
detect/renamingContraction/renamingContraction/ai/AStarHeuristic.java,
detect/renamingContraction/original/game/JPacmanGame.java,
detect/renamingContraction/original/game/Game.java,
detect/renamingContraction/original/game/GameObject.java,
detect/renamingContraction/original/game/Item.java,
detect/renamingContraction/original/map/Path.java,
detect/renamingContraction/original/map/Map.java,
detect/renamingContraction/original/map/PathFinder.java,
detect/renamingContraction/original/util/RequestedDirectionBuffer.java,
detect/renamingContraction/original/util/Direction.java,
detect/renamingContraction/original/editor/EditorFrame.java,
detect/renamingContraction/original/editor/EditorMarker.java,
detect/renamingContraction/original/actors/Actor.java,
detect/renamingContraction/original/actors/Player.java,
detect/renamingContraction/original/actors/Ghost.java,
detect/renamingContraction/original/state/StateEditor.java,
detect/renamingContraction/original/state/State.java,
detect/renamingContraction/original/state/StateMenu.java,
detect/renamingContraction/original/state/StateGame.java,
detect/renamingContraction/original/state/StateScoreboard.java,
detect/renamingContraction/original/ai/AIManager.java,
detect/renamingContraction/original/ai/AStarHeuristic.java
Clones detected: 53
1208 of 3621 lines are duplicates (33.36%)
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/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 209 | Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 207 | |
f1211 = new JButton(); getContentPane().add(f1211); f1211.setText("Save"); f1211.setBounds(12, 317, 70, 23); f1211.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v8) { f111.m72(f1011.getText()); |
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()); |
|
f1111 = new JButton(); getContentPane().add(f1111); f1111.setText("Load"); f1111.setBounds(87, 317, 68, 23); f1111.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v9) { f111.m82(f1011.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()); |
|
f1011 = new JTextField(); getContentPane().add(f1011); f1011.setBounds(12, 345, 225, 23); f1011.setText("test.map"); |
txtFilename = new JTextField(); getContentPane().add(txtFilename); txtFilename.setBounds(12, 345, 225, 23); txtFilename.setText("test.map"); |
|
f911 = new JButton(); getContentPane().add(f911); f911.setText("New"); f911.setBounds(160, 317, 71, 23); f911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v10) { f111.m62(28, 31); |
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); |
|
f811 = new JButton(); getContentPane().add(f811); f811.setText("Teleport"); f811.setBounds(237, 218, 110, 23); f811.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v11) { f111.m02(GameObject.f716); f111.m52(Integer.parseInt(f411.getText()), Integer.parseInt(f311.getText())); |
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())); |
|
f711 = new JLabel(); getContentPane().add(f711); f711.setText("Teleport Settings"); f711.setBounds(237, 196, 123, 16); |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
|
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
|
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
f311 = new JTextArea(); getContentPane().add(f311); f311.setText("17"); f311.setBounds(280, 275, 82, 20); |
txtTeleportY = new JTextArea(); getContentPane().add(txtTeleportY); txtTeleportY.setText("17"); txtTeleportY.setBounds(280, 275, 82, 20); |
|
f1811 = new JButton(); getContentPane().add(f1811); f1811.setText("Powerup"); f1811.setBounds(12, 65, 102, 23); f1811.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v12) { f111.m02(GameObject.f116); |
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); |
|
f1711 = new JLabel(); getContentPane().add(f1711); f1711.setText("Ghost Settings"); f1711.setBounds(272, 12, 76, 16); |
lblGhosts = new JLabel(); getContentPane().add(lblGhosts); lblGhosts.setText("Ghost Settings"); lblGhosts.setBounds(272, 12, 76, 16); |
|
f1611 = new JCheckBox(); getContentPane().add(f1611); f1611.setText("Trapped"); f1611.setBounds(360, 10, 100, 20); f1611.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent v13) { f111.m32(!f111.m42()); System.out.println(f111.m42()); |
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()); |
Clone # 2
Distance between two fragments = 25
Clone size = 61
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 79 | Source file "detect/renamingContraction/renamingContraction/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) { f111.m08().m720(State.f58); |
|
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"); |
f2511 = new JMenuBar(); setJMenuBar(f2511); { f2411 = new JMenu(); f2511.add(f2411); f2411.setText("File"); { f2311 = new JMenuItem(); f2411.add(f2311); f2311.setText("Load"); } { f2211 = new JMenuItem(); f2411.add(f2211); f2211.setText("Save"); } { f211 = new JMenuItem(); f2411.add(f211); f211.setText("Save As.."); } { f2111 = new JSeparator(); f2411.add(f2111); } { f2011 = new JMenuItem(); f2411.add(f2011); f2011.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); |
f3011 = new JButton(); getContentPane().add(f3011); f3011.setText("Wall"); f3011.setBounds(12, 218, 59, 23); f3011.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f111.m02(GameObject.f616); |
|
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); |
f2911 = new JButton(); getContentPane().add(f2911); f2911.setText("Dot"); f2911.setBounds(12, 36, 59, 23); f2911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f111.m02(GameObject.f016); |
|
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); |
f2811 = new JButton(); getContentPane().add(f2811); f2811.setText("Pacman"); f2811.setBounds(136, 36, 110, 23); f2811.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f111.m02(GameObject.f316); |
|
jSeparator1 = new JSeparator(); getContentPane().add(jSeparator1); jSeparator1.setBounds(12, 301, 360, 10); |
f2711 = new JSeparator(); getContentPane().add(f2711); f2711.setBounds(12, 301, 360, 10); |
|
lblPlaceableObjs = new JLabel(); getContentPane().add(lblPlaceableObjs); lblPlaceableObjs.setText("Placeable Objects"); lblPlaceableObjs.setBounds(12, 12, 129, 16); |
f2611 = new JLabel(); getContentPane().add(f2611); f2611.setText("Placeable Objects"); f2611.setBounds(12, 12, 129, 16); |
|
jWallTypeLabel = new JLabel(); getContentPane().add(jWallTypeLabel); jWallTypeLabel.setText("Wall Type"); jWallTypeLabel.setBounds(12, 196, 82, 16); |
f1911 = new JLabel(); getContentPane().add(f1911); f1911.setText("Wall Type"); f1911.setBounds(12, 196, 82, 16); |
Clone # 3
Distance between two fragments = 20
Clone size = 34
Source file "detect/renamingContraction/original/game/Game.java" The first line is 67 | Source file "detect/renamingContraction/renamingContraction/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 m020() { // Debug vars f120 = false; f1120 = "test.map"; f920 = false; // Setup the game frame f320 = new Frame("Pacman"); f320.setLayout(null); setBounds(0, 0, f420, f520); f320.add(this); f320.setSize(f420, f520); f320.setResizable(false); f320.setVisible(true); // Set the exit handler with an anonymous class f320.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent v2) { // Exit main thread f220 = false; } }); // Setup double buffering setIgnoreRepaint(true); // We'll handle repainting createBufferStrategy(2); f620 = getBufferStrategy(); f220 = true; |
|
public Frame getFrame() { return frame; |
public Frame m120() { return f320; |
|
public Graphics2D getGraphicsContext() { return (Graphics2D) m_gBuffer.getDrawGraphics(); |
public Graphics2D m220() { return (Graphics2D) f620.getDrawGraphics(); |
|
public String getStartMap() { return startMap; |
public String m320() { return f1120; |
|
public void setStartMap(String m) { startMap = m; |
public void m420(String v3) { f1120 = v3; |
|
public boolean isDebugEnabled() { return debugEnabled; |
public boolean m520() { return f120; |
|
public void toggleDebug() { debugEnabled = !debugEnabled; |
public void m620() { f120 = !f120; |
|
public void requestChangeState(int state) { requestedState = state; changeStateRequested = true; |
public void m720(int v4) { f1020 = v4; f920 = true; |
Clone # 4
Distance between two fragments = 36
Clone size = 32
Source file "detect/renamingContraction/renamingContraction/state/StateEditor.java" The first line is 74 | Source file "detect/renamingContraction/original/state/StateEditor.java" The first line is 74 | |
public void m02(int v1) { f42 = v1; |
public void setMarkerObjectType(int t) { markerObjectType = t; |
|
public void m12(byte v2) { f52 = v2; |
public void setMarkerWallType(byte t) { markerWallType = t; |
|
public void m22(String v3) { f62 = v3; |
public void setMarkerGhostType(String t) { markerGhostType = t; |
|
public void m32(boolean v4) { f72 = v4; |
public void setMarkerGhostTrapped(boolean t) { markerGhostTrapped = t; |
|
public boolean m42() { return f72; |
public boolean getMarkerGhostTrapped() { return markerGhostTrapped; |
|
public void m52(int v5, int v6) { f82 = v5; f92 = v6; |
public void setMarkerTeleport(int x, int y) { markerTeleportX = x; markerTeleportY = y; |
|
@Override public void m18() { // Force previous references out of scope f12 = null; f32 = null; f42 = GameObject.f016; |
@Override public void reset() { // Force previous references out of scope marker = null; map = null; markerObjectType = GameObject.OBJECT_DOT; |
|
public void m62(int v7, int v8) { // Setup the game map f68.m220().setBackground(Color.BLACK); f102 = v7; f112 = v8; f32 = new Map(28, 31, 32); // Create the marker (but don't put it "in" the map) f12 = new EditorMarker(Color.GREEN, f32, 0, 0); |
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 m72(String v9) { f32.m235(System.getProperty("user.dir") + "\\" + v9); |
public void saveMap(String filename) { map.write(System.getProperty("user.dir") + "\\" + filename); |
|
public void m82(String v10) { // Setup the game map f68.m220().setBackground(Color.BLACK); f32 = new Map(System.getProperty("user.dir") + "\\" + v10, 32); f102 = f32.m05(); f112 = f32.m15(); // Create the marker (but don't put it "in" the map) f12 = new EditorMarker(Color.GREEN, f32, 0, 0); |
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); |
Clone # 5
Distance between two fragments = 11
Clone size = 27
Source file "detect/renamingContraction/original/game/Game.java" The first line is 227 | Source file "detect/renamingContraction/renamingContraction/game/Game.java" The first line is 230 | |
if (currentState != null) { frame.removeKeyListener(currentState); removeKeyListener(currentState); currentState.end(); |
if (f820 != null) { f320.removeKeyListener(f820); removeKeyListener(f820); f820.m38(); |
|
stateId = state; | f720 = 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 (f720) { case State.f28: f820 = new StateGame(this); break; case State.f18: f820 = 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.f48: f820 = new StateEditor(this); break; case State.f08: f820 = new StateMenu(this); break; case State.f58: f820 = null; f220 = false; break; default: break; |
|
if (currentState != null) { frame.addKeyListener(currentState); addKeyListener(currentState); |
if (f820 != null) { f320.addKeyListener(f820); addKeyListener(f820); |
Clone # 6
Distance between two fragments = 18
Clone size = 21
Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 420 | Source file "detect/renamingContraction/original/map/Map.java" The first line is 414 | |
public int m175(GameObject v34, GameObject v35) { return (int) Math.sqrt(Math.pow(Math.abs(v34.m316() - v35.m316()), 2) + Math.pow(Math.abs(v34.m416() - v35.m416()), 2)); |
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 boolean m185(int v36, int v37) { // Check bounds if (v36 < 0 || v37 < 0 || v36 >= f05 || v37 >= f15) { return false; } // Check if the Object is hitting something on the collideMap if (m95(v36, v37) != 0) { return false; } // Check if object is hitting something on the itemMap if (m105(v36, v37) != null) { return false; } // Actor collission if (m135(v36, v37, false) != null) { return false; } return true; |
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 m195(Actor v38, int v39, int v40) { if (v38 == null) { return false; } // Check bounds if (!m215(v39, v40)) { return false; } // Check if the Object is hitting something on the collideMap if (m95(v39, v40) != 0) { return false; } // Allow the Actor to move 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; |
Clone # 7
Distance between two fragments = 16
Clone size = 19
Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 99 | Source file "detect/renamingContraction/original/map/Map.java" The first line is 99 | |
public int m05() { return f05; |
public int getWidth() { return mapWidth; |
|
public int m15() { return f15; |
public int getHeight() { return mapHeight; |
|
public int m25() { return f85.size(); |
public int getNumActors() { return actorList.size(); |
|
public byte[][] m35() { return f65; |
public byte[][] getCollidableMap() { return collideMap; |
|
public Item[][] m45() { return f75; |
public Item[][] getItemMap() { return itemMap; |
|
public int m55() { return f95; |
public int getDotsRemaining() { return dotsRemaining; |
|
public boolean m65(int v5, int v6, byte v7) { // Check bounds if (v5 < 0 || v6 < 0 || v5 >= f05 || v6 >= f15) { return false; } // Check if theres already something there if (f65[v5][v6] > 0) { return false; } // Add to the collideMap f65[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/renamingContraction/original/map/PathFinder.java" The first line is 346 | Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 358 | |
public float getMovementCost(Actor mover, int sx, int sy, int tx, int ty) { return map.getCost(mover, sx, sy, tx, ty); |
public float m94(Actor v36, int v37, int v38, int v39, int v40) { return f24.m225(v36, v37, v38, v39, v40); |
|
public float getHeuristicCost(Actor mover, int x, int y, int tx, int ty) { return heuristic.getCost(map, mover, x, y, tx, ty); |
public float m104(Actor v41, int v42, int v43, int v44, int v45) { return f64.m06(f24, v41, v42, v43, v44, v45); |
|
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); |
private class SortedNodeList { /** The list of elements */ private final ArrayList<Node> f04 = new ArrayList<Node>(); /** * Retrieve the first element from the list * * @return The first element from the list */ public Object m04() { return f04.get(0); } /** * Empty the list */ public void m14() { f04.clear(); } /** * Add an element to the list - causes sorting * * @param v46 * The element to add */ public void m24(Node v46) { f04.add(v46); Collections.sort(f04); } /** * Remove an element from the list * * @param v47 * The element to remove */ public void m34(Object v47) { f04.remove(v47); } /** * Get the number of elements in the list * * @return The number of element in the list */ public int m44() { return f04.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 m54(Object v48) { return f04.contains(v48); |
Clone # 9
Distance between two fragments = 8
Clone size = 17
Source file "detect/renamingContraction/original/state/StateGame.java" The first line is 271 | Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 277 | |
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 (f68.m520()) { 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: " + f015.m316(), 750, 675); v5.drawString("positionY: " + f015.m416(), 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 (f715) { v5.setColor(Color.RED); v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); v5.drawString("PAUSED", 750, 500); if (f815 > System.currentTimeMillis()) { v5.drawString( "Pause ends in..." + ((f815 - System.currentTimeMillis()) / 1000), 750, 550); } if (f815 != 0 && System.currentTimeMillis() > f815) { f815 = 0; f715 = false; } return; |
Clone # 10
Distance between two fragments = 15
Clone size = 17
Source file "detect/renamingContraction/original/state/StateGame.java" The first line is 154 | Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 157 | |
g.translate(10, 30); | v5.translate(10, 30); | |
g.setColor(Color.WHITE); | v5.setColor(Color.WHITE); | |
g.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | |
g.drawString("PACMAN by Ramsey Kant", 680, 50); | v5.drawString("PACMAN by Ramsey Kant", 680, 50); | |
g.drawString("Score: " + player.getScore(), 750, 100); | v5.drawString("Score: " + f015.m113(), 750, 100); | |
g.drawString("Total: " + sessionScore, 750, 150); | v5.drawString("Total: " + f515, 750, 150); | |
g.drawString("Lives: " + livesRemaining, 750, 200); | v5.drawString("Lives: " + f615, 750, 200); | |
g.drawString("Level: " + currentLevel, 750, 250); | v5.drawString("Level: " + f415, 750, 250); | |
if (!gamePaused) { ai.process(); player.act(); |
if (!f715) { f215.m20(); f015.m516(); |
|
if (player.isDead()) { lose(); return; |
if (f015.m312()) { m315(); return; |
|
if (map.getDotsRemaining() <= 0) { win(); return; |
if (f115.m55() <= 0) { m215(); return; |
Clone # 11
Distance between two fragments = 17
Clone size = 16
Source file "detect/renamingContraction/renamingContraction/actors/Ghost.java" The first line is 56 | Source file "detect/renamingContraction/original/actors/Ghost.java" The first line is 56 | |
public boolean m018() { return f418; |
public boolean isInFear() { return inFear; |
|
public void m118(boolean v5) { f418 = v5; |
public void setFear(boolean f) { inFear = f; |
|
public boolean m218() { return f318; |
public boolean isTrapped() { return trapped; |
|
public void m318(boolean v6) { f318 = v6; |
public void setTrapped(boolean t) { trapped = t; |
|
public boolean m418() { return f218; |
public boolean needsNewPath() { return needNewPath; |
|
public void m518(Path v7) { f118 = 1; f018 = v7; f218 = false; |
public void updatePath(Path p) { nextStepIdx = 1; path = p; needNewPath = false; |
|
public void m618(boolean v8) { f518 = v8; |
public void setDebugDrawPath(boolean d) { debugDrawPath = d; |
Clone # 12
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingContraction/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/renamingContraction/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 271 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
|
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
f311 = new JTextArea(); getContentPane().add(f311); f311.setText("17"); f311.setBounds(280, 275, 82, 20); |
Clone # 14
Distance between two fragments = 22
Clone size = 16
Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 269 | |
f711 = new JLabel(); getContentPane().add(f711); f711.setText("Teleport Settings"); f711.setBounds(237, 196, 123, 16); |
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
|
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.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/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 271 | |
f711 = new JLabel(); getContentPane().add(f711); f711.setText("Teleport Settings"); f711.setBounds(237, 196, 123, 16); |
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
|
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
|
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
|
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
f311 = new JTextArea(); getContentPane().add(f311); f311.setText("17"); f311.setBounds(280, 275, 82, 20); |
Clone # 16
Distance between two fragments = 10
Clone size = 16
Source file "detect/renamingContraction/original/map/Map.java" The first line is 487 | Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 495 | |
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 f01: v44--; break; case f11: v43++; break; case f21: v44++; break; case f31: v43--; break; case f41: return true; |
|
return canMove(act, x, y); | return m195(v41, v43, v44); |
Clone # 17
Distance between two fragments = 5
Clone size = 16
Source file "detect/renamingContraction/original/state/StateMenu.java" The first line is 83 | Source file "detect/renamingContraction/renamingContraction/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 (f419.length > 0) { v5.drawString("Current Map: " + f419[f319], 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(f019, f119, 150, 5); |
Clone # 18
Distance between two fragments = 9
Clone size = 16
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingContraction/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 # 19
Distance between two fragments = 13
Clone size = 16
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingContraction/renamingContraction/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); |
f3011 = new JButton(); getContentPane().add(f3011); f3011.setText("Wall"); f3011.setBounds(12, 218, 59, 23); f3011.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f111.m02(GameObject.f616); |
|
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); |
f2911 = new JButton(); getContentPane().add(f2911); f2911.setText("Dot"); f2911.setBounds(12, 36, 59, 23); f2911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f111.m02(GameObject.f016); |
Clone # 20
Distance between two fragments = 13
Clone size = 16
Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 122 | |
f2911 = new JButton(); getContentPane().add(f2911); f2911.setText("Dot"); f2911.setBounds(12, 36, 59, 23); f2911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f111.m02(GameObject.f016); |
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); |
|
f2811 = new JButton(); getContentPane().add(f2811); f2811.setText("Pacman"); f2811.setBounds(136, 36, 110, 23); f2811.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f111.m02(GameObject.f316); |
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 # 21
Distance between two fragments = 11
Clone size = 16
Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 134 | Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 122 | |
f2911 = new JButton(); getContentPane().add(f2911); f2911.setText("Dot"); f2911.setBounds(12, 36, 59, 23); f2911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f111.m02(GameObject.f016); |
f3011 = new JButton(); getContentPane().add(f3011); f3011.setText("Wall"); f3011.setBounds(12, 218, 59, 23); f3011.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v2) { f111.m02(GameObject.f616); |
|
f2811 = new JButton(); getContentPane().add(f2811); f2811.setText("Pacman"); f2811.setBounds(136, 36, 110, 23); f2811.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v4) { f111.m02(GameObject.f316); |
f2911 = new JButton(); getContentPane().add(f2911); f2911.setText("Dot"); f2911.setBounds(12, 36, 59, 23); f2911.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v3) { f111.m02(GameObject.f016); |
Clone # 22
Distance between two fragments = 10
Clone size = 15
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 186 | Source file "detect/renamingContraction/renamingContraction/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")) { f111.m12(GameObject.f816); } else if (v7.equals("Horizontal")) { f111.m12(GameObject.f916); } else if (v7.equals("Top Left")) { f111.m12(GameObject.f1016); } else if (v7.equals("Top Right")) { f111.m12(GameObject.f1116); } else if (v7.equals("Bottom Left")) { f111.m12(GameObject.f1216); } else if (v7.equals("Bottom Right")) { f111.m12(GameObject.f1316); } else if (v7.equals("Ghost Barrier")) { f111.m12(GameObject.f1416); } else { f111.m12(GameObject.f916); |
Clone # 23
Distance between two fragments = 9
Clone size = 15
Source file "detect/renamingContraction/original/state/State.java" The first line is 43 | Source file "detect/renamingContraction/renamingContraction/state/State.java" The first line is 43 | |
public Game getGame() { return game; |
public Game m08() { return f68; |
|
public abstract void reset(); | public abstract void m18(); | |
public abstract void logic(); | public abstract void m28(); | |
public abstract void end(); | public abstract void m38(); | |
@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: f68.m720(f58); break; default: break; |
Clone # 24
Distance between two fragments = 9
Clone size = 15
Source file "detect/renamingContraction/original/state/StateMenu.java" The first line is 135 | Source file "detect/renamingContraction/renamingContraction/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 (f219) { case 0: // Play game if (f419.length > 0) { f68.m420(f419[f319]); f68.m720(f28); } break; case 1: // Scoreboard f68.m720(f18); break; case 2: // Exit f68.m720(f58); break; default: break; |
|
break; | break; |
Clone # 25
Distance between two fragments = 13
Clone size = 14
Source file "detect/renamingContraction/original/state/StateGame.java" The first line is 311 | Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 317 | |
@Override public void end() { // Cleanup player = null; map = null; |
@Override public void m38() { // Cleanup f015 = null; f115 = null; |
|
public void win() { sessionScore += player.getScore(); respawn(true); |
public void m215() { f515 += f015.m113(); m115(true); |
|
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); |
public void m315() { f615--; if (f615 > 0) { m115(false); } else { if (f415 == 1) { f515 = f015.m113(); // win() never called, so // score is the 1st level // score } f68.m720(State.f18); |
Clone # 26
Distance between two fragments = 19
Clone size = 14
Source file "detect/renamingContraction/renamingContraction/map/Path.java" The first line is 27 | Source file "detect/renamingContraction/original/map/Path.java" The first line is 27 | |
public int m03() { return f03.size(); |
public int getLength() { return steps.size(); |
|
public Step m13(int v0) { return f03.get(v0); |
public Step getStep(int index) { return steps.get(index); |
|
public int m23(int v1) { return m13(v1).f03; |
public int getX(int index) { return getStep(index).x; |
|
public int m33(int v2) { return m13(v2).f13; |
public int getY(int index) { return getStep(index).y; |
|
public void m43(int v3, int v4) { f03.add(new Step(v3, v4)); |
public void appendStep(int x, int y) { steps.add(new Step(x, y)); |
|
public void m53(int v5, int v6) { f03.add(0, new Step(v5, v6)); |
public void prependStep(int x, int y) { steps.add(0, new Step(x, y)); |
|
public boolean m63(int v7, int v8) { return f03.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 = 16
Clone size = 14
Source file "detect/renamingContraction/renamingContraction/actors/Actor.java" The first line is 95 | Source file "detect/renamingContraction/original/actors/Actor.java" The first line is 95 | |
public int m012() { return f112; |
public int getSpawnX() { return spawnX; |
|
public int m112() { return f212; |
public int getSpawnY() { return spawnY; |
|
public void m212(boolean v5) { f012 = v5; |
public void setDead(boolean s) { isDead = s; |
|
public boolean m312() { return f012; |
public boolean isDead() { return isDead; |
|
public void m412(float v6) { f912 = v6; |
public void setSpeed(float s) { speed = s; |
|
public float m512() { return f912; |
public float getSpeed() { return speed; |
|
public void m612(Direction v7) { f412.m114(v7); |
public void setMoveDirection(Direction dir) { requestedMoveDirBuffer.setRequestedDirection(dir); |
Clone # 28
Distance between two fragments = 19
Clone size = 14
Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 250 | Source file "detect/renamingContraction/original/map/PathFinder.java" The first line is 240 | |
protected Node m14() { return (Node) f14.m04(); |
protected Node getFirstInOpen() { return (Node) open.first(); |
|
protected void m24(Node v24) { f14.m24(v24); |
protected void addToOpen(Node node) { open.add(node); |
|
protected boolean m34(Node v25) { return f14.m54(v25); |
protected boolean inOpenList(Node node) { return open.contains(node); |
|
protected void m44(Node v26) { f14.m34(v26); |
protected void removeFromOpen(Node node) { open.remove(node); |
|
protected void m54(Node v27) { f04.add(v27); |
protected void addToClosed(Node node) { closed.add(node); |
|
protected boolean m64(Node v28) { return f04.contains(v28); |
protected boolean inClosedList(Node node) { return closed.contains(node); |
|
protected void m74(Node v29) { f04.remove(v29); |
protected void removeFromClosed(Node node) { closed.remove(node); |
Clone # 29
Distance between two fragments = 7
Clone size = 12
Source file "detect/renamingContraction/original/state/StateEditor.java" The first line is 359 | Source file "detect/renamingContraction/renamingContraction/state/StateEditor.java" The first line is 365 | |
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 (f62.equals("Blinky")) { f32.m85(new Ghost(Color.RED, f32, f12.m316(), f12.m416(), f72)); } else if (f62.equals("Pinky")) { f32.m85(new Ghost(Color.PINK, f32, f12.m316(), f12.m416(), f72)); } else if (f62.equals("Inky")) { f32.m85(new Ghost(Color.CYAN, f32, f12.m316(), f12.m416(), f72)); } else { f32.m85(new Ghost(Color.ORANGE, f32, f12.m316(), f12.m416(), f72)); |
|
break; | break; |
Clone # 30
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingContraction/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/renamingContraction/original/editor/EditorFrame.java" The first line is 263 | Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 277 | |
lblTeleportSettings = new JLabel(); getContentPane().add(lblTeleportSettings); lblTeleportSettings.setText("Teleport Settings"); lblTeleportSettings.setBounds(237, 196, 123, 16); |
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
|
lblTeleportX = new JLabel(); getContentPane().add(lblTeleportX); lblTeleportX.setText("Dest X:"); lblTeleportX.setBounds(237, 249, 60, 16); |
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
|
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
f311 = new JTextArea(); getContentPane().add(f311); f311.setText("17"); f311.setBounds(280, 275, 82, 20); |
Clone # 32
Distance between two fragments = 19
Clone size = 12
Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 275 | |
f711 = new JLabel(); getContentPane().add(f711); f711.setText("Teleport Settings"); f711.setBounds(237, 196, 123, 16); |
lblTeleportY = new JLabel(); getContentPane().add(lblTeleportY); lblTeleportY.setText("Dest Y: "); lblTeleportY.setBounds(235, 279, 52, 16); |
|
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
txtTeleportX = new JTextField(); getContentPane().add(txtTeleportX); txtTeleportX.setText("13"); txtTeleportX.setBounds(280, 246, 85, 23); |
|
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.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/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 265 | Source file "detect/renamingContraction/renamingContraction/editor/EditorFrame.java" The first line is 277 | |
f711 = new JLabel(); getContentPane().add(f711); f711.setText("Teleport Settings"); f711.setBounds(237, 196, 123, 16); |
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
|
f611 = new JLabel(); getContentPane().add(f611); f611.setText("Dest X:"); f611.setBounds(237, 249, 60, 16); |
f411 = new JTextField(); getContentPane().add(f411); f411.setText("13"); f411.setBounds(280, 246, 85, 23); |
|
f511 = new JLabel(); getContentPane().add(f511); f511.setText("Dest Y: "); f511.setBounds(235, 279, 52, 16); |
f311 = new JTextArea(); getContentPane().add(f311); f311.setText("17"); f311.setBounds(280, 275, 82, 20); |
Clone # 34
Distance between two fragments = 7
Clone size = 12
Source file "detect/renamingContraction/original/game/Item.java" The first line is 134 | Source file "detect/renamingContraction/renamingContraction/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 (f1516) { case f016: v9.fillArc(v10 - 4, v11 - 4, 8, 8, 0, 360); break; case f116: v9.fillArc(v10 - 8, v11 - 8, 16, 16, 0, 360); break; case f716: v9.fillOval(v10 - 6, v11 - 8, 12, 16); break; default: break; |
Clone # 35
Distance between two fragments = 12
Clone size = 12
Source file "detect/renamingContraction/original/map/Map.java" The first line is 564 | Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 576 | |
item = itemMap[x][y]; | v57 = f75[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.m016()); | |
data.writeInt(item.getX()); | v54.writeInt(v57.m316()); | |
data.writeInt(item.getY()); | v54.writeInt(v57.m416()); | |
data.writeInt(item.getColor().getRGB()); | v54.writeInt(v57.m116().getRGB()); | |
if (item.getType() == GameObject.OBJECT_TELEPORT) { data.writeInt(item.getTeleportX()); data.writeInt(item.getTeleportY()); |
if (v57.m016() == GameObject.f716) { v54.writeInt(v57.m17()); v54.writeInt(v57.m27()); |
Clone # 36
Distance between two fragments = 9
Clone size = 11
Source file "detect/renamingContraction/original/map/Map.java" The first line is 618 | Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 630 | |
fin = new FileInputStream(filename); | v63 = new FileInputStream(v62); | |
data = new DataInputStream(fin); | v64 = new DataInputStream(v63); | |
if (!data.readUTF().equals("RKPACMAP")) { System.out.println("Not a map file!"); return; |
if (!v64.readUTF().equals("RKPACMAP")) { System.out.println("Not a map file!"); return; |
|
mapWidth = data.readInt(); | f05 = v64.readInt(); | |
mapHeight = data.readInt(); | f15 = v64.readInt(); | |
dotsRemaining = 0; | f95 = 0; | |
collideMap = new byte[mapWidth][mapHeight]; | f65 = new byte[f05][f15]; | |
itemMap = new Item[mapWidth][mapHeight]; | f75 = new Item[f05][f15]; | |
actorList = new ArrayList<Actor>(); | f85 = new ArrayList<Actor>(); |
Clone # 37
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingContraction/original/actors/Actor.java" The first line is 104 | Source file "detect/renamingContraction/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 # 38
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingContraction/original/actors/Actor.java" The first line is 104 | Source file "detect/renamingContraction/renamingContraction/actors/Ghost.java" The first line is 56 | |
public int getSpawnY() { return spawnY; |
public boolean m018() { return f418; |
|
public void setDead(boolean s) { isDead = s; |
public void m118(boolean v5) { f418 = v5; |
|
public boolean isDead() { return isDead; |
public boolean m218() { return f318; |
|
public void setSpeed(float s) { speed = s; |
public void m318(boolean v6) { f318 = v6; |
|
public float getSpeed() { return speed; |
public boolean m418() { return f218; |
Clone # 39
Distance between two fragments = 14
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/actors/Actor.java" The first line is 104 | Source file "detect/renamingContraction/original/actors/Ghost.java" The first line is 56 | |
public int m112() { return f212; |
public boolean isInFear() { return inFear; |
|
public void m212(boolean v5) { f012 = v5; |
public void setFear(boolean f) { inFear = f; |
|
public boolean m312() { return f012; |
public boolean isTrapped() { return trapped; |
|
public void m412(float v6) { f912 = v6; |
public void setTrapped(boolean t) { trapped = t; |
|
public float m512() { return f912; |
public boolean needsNewPath() { return needNewPath; |
Clone # 40
Distance between two fragments = 12
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/actors/Actor.java" The first line is 104 | Source file "detect/renamingContraction/renamingContraction/actors/Ghost.java" The first line is 56 | |
public int m112() { return f212; |
public boolean m018() { return f418; |
|
public void m212(boolean v5) { f012 = v5; |
public void m118(boolean v5) { f418 = v5; |
|
public boolean m312() { return f012; |
public boolean m218() { return f318; |
|
public void m412(float v6) { f912 = v6; |
public void m318(boolean v6) { f318 = v6; |
|
public float m512() { return f912; |
public boolean m418() { return f218; |
Clone # 41
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingContraction/original/game/GameObject.java" The first line is 55 | Source file "detect/renamingContraction/renamingContraction/game/GameObject.java" The first line is 55 | |
public int getType() { return objType; |
public int m016() { return f1516; |
|
public Color getColor() { return objColor; |
public Color m116() { return f1616; |
|
public void setColor(Color c) { objColor = c; |
public void m216(Color v0) { f1616 = v0; |
|
public int getX() { return positionX; |
public int m316() { return f1716; |
|
public int getY() { return positionY; |
public int m416() { return f1816; |
Clone # 42
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingContraction/original/state/StateGame.java" The first line is 65 | Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 65 | |
public int getSessionScore() { return sessionScore; |
public int m015() { return f515; |
|
@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 m18() { // Set game vars f315 = f68.m320(); f415 = 0; f515 = 0; f615 = 99; f815 = 0; // Respawn (start level 1) m115(true); |
Clone # 43
Distance between two fragments = 48
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 153 | Source file "detect/renamingContraction/renamingContraction/state/StateMenu.java" The first line is 79 | |
final Graphics2D v5; | final Graphics2D v5; | |
v5 = f68.m220(); | v5 = f68.m220(); | |
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: " + f015.m113(), 750, 100); | v5.fillArc(780, 92, 100, 100, 35, 270); | |
v5.drawString("Total: " + f515, 750, 150); | v5.setFont(new Font("Comic Sans MS", Font.BOLD, 24)); | |
v5.drawString("Lives: " + f615, 750, 200); | v5.drawString("Play Game", 380, 300); | |
v5.drawString("Level: " + f415, 750, 250); | v5.drawString("Scoreboard", 380, 340); |
Clone # 44
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 271 | Source file "detect/renamingContraction/original/map/PathFinder.java" The first line is 250 | |
protected boolean m34(Node v25) { return f14.m54(v25); |
protected void addToOpen(Node node) { open.add(node); |
|
protected void m44(Node v26) { f14.m34(v26); |
protected boolean inOpenList(Node node) { return open.contains(node); |
|
protected void m54(Node v27) { f04.add(v27); |
protected void removeFromOpen(Node node) { open.remove(node); |
|
protected boolean m64(Node v28) { return f04.contains(v28); |
protected void addToClosed(Node node) { closed.add(node); |
|
protected void m74(Node v29) { f04.remove(v29); |
protected boolean inClosedList(Node node) { return closed.contains(node); |
Clone # 45
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 271 | Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 260 | |
protected boolean m34(Node v25) { return f14.m54(v25); |
protected void m24(Node v24) { f14.m24(v24); |
|
protected void m44(Node v26) { f14.m34(v26); |
protected boolean m34(Node v25) { return f14.m54(v25); |
|
protected void m54(Node v27) { f04.add(v27); |
protected void m44(Node v26) { f14.m34(v26); |
|
protected boolean m64(Node v28) { return f04.contains(v28); |
protected void m54(Node v27) { f04.add(v27); |
|
protected void m74(Node v29) { f04.remove(v29); |
protected boolean m64(Node v28) { return f04.contains(v28); |
Clone # 46
Distance between two fragments = 29
Clone size = 10
Source file "detect/renamingContraction/original/map/PathFinder.java" The first line is 250 | Source file "detect/renamingContraction/original/map/PathFinder.java" The first line is 261 | |
protected void addToOpen(Node node) { open.add(node); |
protected boolean inOpenList(Node node) { return open.contains(node); |
|
protected boolean inOpenList(Node node) { return open.contains(node); |
protected void removeFromOpen(Node node) { open.remove(node); |
|
protected void removeFromOpen(Node node) { open.remove(node); |
protected void addToClosed(Node node) { closed.add(node); |
|
protected void addToClosed(Node node) { closed.add(node); |
protected boolean inClosedList(Node node) { return closed.contains(node); |
|
protected boolean inClosedList(Node node) { return closed.contains(node); |
protected void removeFromClosed(Node node) { closed.remove(node); |
Clone # 47
Distance between two fragments = 34
Clone size = 10
Source file "detect/renamingContraction/renamingContraction/map/PathFinder.java" The first line is 260 | Source file "detect/renamingContraction/original/map/PathFinder.java" The first line is 261 | |
protected void m24(Node v24) { f14.m24(v24); |
protected boolean inOpenList(Node node) { return open.contains(node); |
|
protected boolean m34(Node v25) { return f14.m54(v25); |
protected void removeFromOpen(Node node) { open.remove(node); |
|
protected void m44(Node v26) { f14.m34(v26); |
protected void addToClosed(Node node) { closed.add(node); |
|
protected void m54(Node v27) { f04.add(v27); |
protected boolean inClosedList(Node node) { return closed.contains(node); |
|
protected boolean m64(Node v28) { return f04.contains(v28); |
protected void removeFromClosed(Node node) { closed.remove(node); |
Clone # 48
Distance between two fragments = 9
Clone size = 10
Source file "detect/renamingContraction/original/actors/Player.java" The first line is 54 | Source file "detect/renamingContraction/renamingContraction/actors/Player.java" The first line is 54 | |
public void incrementScore(int amt) { m_iScore += amt; |
public void m013(int v3) { f013 += v3; |
|
public int getScore() { return m_iScore; |
public int m113() { return f013; |
|
public boolean isPoweredUp() { return isPowered; |
public boolean m213() { return f113; |
|
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 m313(boolean v4) { f113 = v4; // If powered up, start the timer and increase speed temporarily if (f113) { f213 = System.currentTimeMillis() + 10000; |
Clone # 49
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingContraction/original/map/Map.java" The first line is 52 | Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 52 | |
mapWidth = w; | f05 = v0; | |
mapHeight = h; | f15 = v1; | |
SCALE = scale; | f55 = v2; | |
CELL_SIZE = (int) (32 * scale); | f25 = (int) (32 * v2); | |
WALL_THICKNESS = (int) (12 * scale); | f35 = (int) (12 * v2); | |
WALL_OVERLAP = (int) (10 * scale); | f45 = (int) (10 * v2); | |
dotsRemaining = 0; | f95 = 0; | |
collideMap = new byte[mapWidth][mapHeight]; | f65 = new byte[f05][f15]; | |
itemMap = new Item[mapWidth][mapHeight]; | f75 = new Item[f05][f15]; | |
actorList = new ArrayList<Actor>(); | f85 = new ArrayList<Actor>(); |
Clone # 50
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingContraction/original/state/StateEditor.java" The first line is 49 | Source file "detect/renamingContraction/renamingContraction/state/StateEditor.java" The first line is 49 | |
gameView = false; | f22 = false; | |
game.getFrame().setSize(1024, game.RES_Y); | f68.m120().setSize(1024, f68.f520); | |
editorFrame = new EditorFrame(this); | f02 = new EditorFrame(this); | |
editorFrame.setVisible(true); | f02.setVisible(true); | |
markerObjectType = GameObject.OBJECT_WALL; | f42 = GameObject.f616; | |
markerWallType = GameObject.WALL_VERTICAL; | f52 = GameObject.f816; | |
markerGhostType = "Blinky"; | f62 = "Blinky"; | |
markerGhostTrapped = false; | f72 = false; | |
markerTeleportX = 13; | f82 = 13; | |
markerTeleportY = 17; | f92 = 17; |
Clone # 51
Distance between two fragments = 13
Clone size = 10
Source file "detect/renamingContraction/original/state/StateGame.java" The first line is 102 | Source file "detect/renamingContraction/renamingContraction/state/StateGame.java" The first line is 102 | |
currentLevel++; | f415++; | |
player = null; | f015 = null; | |
map = null; | f115 = null; | |
ai = null; | f215 = null; | |
game.getGraphicsContext().setBackground(Color.BLACK); | f68.m220().setBackground(Color.BLACK); | |
map = new Map(mapName, 0.75); | f115 = new Map(f315, 0.75); | |
mapWidth = map.getWidth(); | f915 = f115.m05(); | |
mapHeight = map.getHeight(); | f1015 = f115.m15(); | |
player = map.getPlayer(); | f015 = f115.m125(); | |
ai = new AIManager(map, player, game.isDebugEnabled()); | f215 = new AIManager(f115, f015, f68.m520()); |
Clone # 52
Distance between two fragments = 10
Clone size = 10
Source file "detect/renamingContraction/original/map/Map.java" The first line is 587 | Source file "detect/renamingContraction/renamingContraction/map/Map.java" The first line is 599 | |
data.writeInt(actorList.size()); | v54.writeInt(f85.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 : f85) { v54.writeInt(v60.m016()); v54.writeInt(v60.m316()); v54.writeInt(v60.m416()); v54.writeInt(v60.m116().getRGB()); if (v60.m016() == GameObject.f416) { v54.writeBoolean(((Ghost) v60).m218()); |
|
data.close(); | v54.close(); | |
fout.close(); | v53.close(); |
Clone # 53
Distance between two fragments = 5
Clone size = 10
Source file "detect/renamingContraction/original/editor/EditorFrame.java" The first line is 339 | Source file "detect/renamingContraction/renamingContraction/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); |
f1411 = new JButton(); getContentPane().add(f1411); f1411.setText("Add Ghost"); f1411.setBounds(272, 36, 146, 23); f1411.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent v17) { f111.m02(GameObject.f416); |
|
pack(); | pack(); | |
this.setSize(451, 547); | this.setSize(451, 547); |
(*) Warning: the highlighting of differences is based on diff and doesn't reflect the tree-based clone detection algorithm.