mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-04 03:33:45 +01:00 
			
		
		
		
	Lagd metode for å få damage fra en spesifikk robot
This commit is contained in:
		@@ -172,6 +172,16 @@ public class Board {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Get the damage of a specific robot
 | 
				
			||||||
 | 
					     * @param robot The RobotID of a robot
 | 
				
			||||||
 | 
					     * @return The amount of damage the robot has currently
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public int getRobotDamage(RobotID robot) {
 | 
				
			||||||
 | 
					        return robots.get(robot).getDamageTaken();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Moves a robot one unit in a specified direction
 | 
					     * Moves a robot one unit in a specified direction
 | 
				
			||||||
     * @param robotID ID of the robot to move
 | 
					     * @param robotID ID of the robot to move
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user