mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Lagd metode for å få damage fra en spesifikk robot
This commit is contained in:
parent
22f91c84c2
commit
4b1bb42361
@ -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
|
||||
* @param robotID ID of the robot to move
|
||||
|
Loading…
x
Reference in New Issue
Block a user