summaryrefslogtreecommitdiff
path: root/host/simu/robots/apbirthday/view/robot.py
diff options
context:
space:
mode:
authorNicolas Schodet2013-04-24 22:44:30 +0200
committerNicolas Schodet2013-04-24 22:46:05 +0200
commit78d2f3d295c56e976c13b187b7723670411e4101 (patch)
tree4e973bbe34a6c67008429ad5d1a7771b351e5481 /host/simu/robots/apbirthday/view/robot.py
parente506888ef09a23440d71b3f59067afbe84259c40 (diff)
digital/io-hub/src/apbirthday, host/simu: add cherries cannon simulationHEADmaster
Diffstat (limited to 'host/simu/robots/apbirthday/view/robot.py')
-rw-r--r--host/simu/robots/apbirthday/view/robot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/simu/robots/apbirthday/view/robot.py b/host/simu/robots/apbirthday/view/robot.py
index e4153232..9675aff5 100644
--- a/host/simu/robots/apbirthday/view/robot.py
+++ b/host/simu/robots/apbirthday/view/robot.py
@@ -27,6 +27,7 @@ from simu.view.table_eurobot2013 import PINK, colors
COLOR_ROBOT = '#000000'
COLOR_AXES = '#202040'
+COLOR_CANNON = '#808080'
class Robot (simu.inter.drawable.Drawable):
@@ -69,6 +70,8 @@ class Robot (simu.inter.drawable.Drawable):
# Draw robot body.
self.draw_polygon ((102, 140), (102, -140), (-108, -140),
(-108, 70), (-58, 140), fill = COLOR_ROBOT)
+ self.draw_circle ((70, self.cannon_model.cannon_hit[1]), 20,
+ fill = COLOR_CANNON)
# Draw Robot axis.
self.draw_line ((-50, 0), (50, 0), fill = COLOR_AXES,
arrow = 'last')