mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Legger til manglende kommentarer for metoder krevd av kryo
This commit is contained in:
parent
b3fee7494f
commit
cb9841ecf9
@ -6,9 +6,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This Class represents a player
|
* This class represents a player
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Player {
|
public class Player {
|
||||||
private RobotID robotID;
|
private RobotID robotID;
|
||||||
private String name;
|
private String name;
|
||||||
@ -26,15 +25,28 @@ public class Player {
|
|||||||
this.robotID = robotID;
|
this.robotID = robotID;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty constructor required by kryo
|
||||||
|
*/
|
||||||
public Player(){}
|
public Player(){}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the robot id of the robot
|
||||||
|
* @param robotID The new id of the robot
|
||||||
|
*/
|
||||||
public void setRobotID(RobotID robotID) {
|
public void setRobotID(RobotID robotID) {
|
||||||
this.robotID = robotID;
|
this.robotID = robotID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the name of the robot
|
||||||
|
* @param name The new name of the robot
|
||||||
|
*/
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gives you the RobotID of a player
|
* Gives you the RobotID of a player
|
||||||
* @return A RobotID
|
* @return A RobotID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user