Skip to content

Commit

Permalink
Fix SonarCloud : Remove of no longer needed debug statment in Game class
Browse files Browse the repository at this point in the history
  • Loading branch information
Abri02 committed May 19, 2024
1 parent b02abde commit 8bdad33
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main/java/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,10 @@ public void setRandomEnabled(boolean random)
if(random==true)
{
Control.getInstance().appendToLog("Random events Enabled");
//System.out.println("Random events Enabled");
}
else
{
Control.getInstance().appendToLog("Random events Disabled");
//System.out.println("Random events Disabled");
}
}

Expand Down Expand Up @@ -162,22 +160,18 @@ public void playGame()
{
while(remainingRounds>0)
{
//System.out.println("Sab: "+saboteurGroup.size());
for(int i = 0;i<saboteurGroup.size();i++)
{
currentCharacter=saboteurGroup.get(i);
currentCharacter.resetRemainingSteps();
saboteurGroup.get(i).step();
endTurn();
//System.out.println(currentCharacter.getName());
}
//System.out.println("Rep: "+repairmanGroup.size());
for(int i = 0;i<repairmanGroup.size();i++)
{
currentCharacter=repairmanGroup.get(i);
repairmanGroup.get(i).step();
endTurn();
//System.out.println(currentCharacter.getName());
}
remainingRounds--;
}
Expand Down Expand Up @@ -235,8 +229,6 @@ public void endTurn()
*/
public void SimulateWaterflow()
{
//Tabulator.increaseTab();
//Tabulator.printTab();
for(int i = 0;i<cisterns.size();i++)
{
cisterns.get(i).step();
Expand All @@ -249,7 +241,6 @@ public void SimulateWaterflow()
*/
public void addCistern(Cistern c)
{
//System.out.println("addCistern");
cisterns.add(c);
gameElements.add(c);
}
Expand All @@ -260,7 +251,6 @@ public void addCistern(Cistern c)
*/
public void addElement(Element e)
{
//System.out.println("addEmelent");
gameElements.add(e);
}

Expand All @@ -270,7 +260,6 @@ public void addElement(Element e)
*/
public ArrayList<Element> getGameElements()//Jó lesz-e ArrayList??
{
//System.out.println("getGameElements");
return gameElements;
}

Expand All @@ -281,7 +270,6 @@ public ArrayList<Element> getGameElements()//Jó lesz-e ArrayList??
public void addSaboteur(Saboteur sab)
{
saboteurGroup.add(sab);
//System.out.println("addSaboteur");
}

/**
Expand All @@ -291,7 +279,6 @@ public void addSaboteur(Saboteur sab)
public void addRepairman(Repairman rep)
{
repairmanGroup.add(rep);
//System.out.println("addRepairman");
}

/**
Expand All @@ -300,7 +287,6 @@ public void addRepairman(Repairman rep)
*/
public void addPipe(Pipe p)
{
//System.out.println("addPipe");
saboteurPointSources.add(p);
gameElements.add(p);//Ez kell-e??
}
Expand All @@ -310,7 +296,6 @@ public void addPipe(Pipe p)
*/
public void calculatePoints()
{
//System.out.println("calculatePoints");
for(int i = 0;i<cisterns.size();i++)
{
repairmanPoints+= cisterns.get(i).measureAndResetWaterFlown();
Expand All @@ -328,7 +313,6 @@ public void calculatePoints()
*/
public void addPump(Pump p)
{
//System.out.println("addPump");
saboteurPointSources.add(p);
gameElements.add(p);//Ez kell-e??
timer.addPump(p);
Expand Down Expand Up @@ -377,7 +361,6 @@ public void setCurrentCharacter(Character c){
public void setTurns(int turns)
{
this.remainingRounds = turns;
//System.out.println("Turn set: "+turns);
}

/** Hátralevő körök beállítása */
Expand Down

0 comments on commit 8bdad33

Please sign in to comment.