diff options
Diffstat (limited to 'src/Robot.java')
-rw-r--r-- | src/Robot.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Robot.java b/src/Robot.java index 043cc1c..aa6c539 100644 --- a/src/Robot.java +++ b/src/Robot.java @@ -9,6 +9,11 @@ import javax.media.opengl.fixedfunc.GLLightingFunc; */ class Robot extends BetterBase { private final Color boneColor = Colors.CHOCOLATE; + /** + * The robot race in which this robot it participating (used for texture + * stuff for example). + */ + private final RobotRace race; /** The material from which this robot is built. */ private final Material material; @@ -54,7 +59,8 @@ class Robot extends BetterBase { /** * Constructs the robot with initial parameters. */ - public Robot(Material material, int laneNo) { + public Robot(RobotRace race, Material material, int laneNo) { + this.race = race; /* Set all parameters of the robot */ this.material = material; this.torsoHeight = 0.6f; |