mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-25 02:34:43 +02:00
added method getPlayerId in robot class and tested it in Robottest
This commit is contained in:
@ -98,4 +98,12 @@ public class Robot {
|
||||
return backupPosition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the identifier of the players controlling the robot
|
||||
* @return player identifier
|
||||
*/
|
||||
public int getPlayerId(){
|
||||
return playerId;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user