summaryrefslogtreecommitdiff
path: root/host/simu/model/table_eurobot2013.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/model/table_eurobot2013.py
parente506888ef09a23440d71b3f59067afbe84259c40 (diff)
digital/io-hub/src/apbirthday, host/simu: add cherries cannon simulationHEADmaster
Diffstat (limited to 'host/simu/model/table_eurobot2013.py')
-rw-r--r--host/simu/model/table_eurobot2013.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/simu/model/table_eurobot2013.py b/host/simu/model/table_eurobot2013.py
index d73b0564..0181ac00 100644
--- a/host/simu/model/table_eurobot2013.py
+++ b/host/simu/model/table_eurobot2013.py
@@ -22,6 +22,7 @@
#
# }}}
"""Table model for Eurobot 2013."""
+from utils.observable import Observable
import simu.model.table
from simu.model.round_obstacle import RoundObstacle
from simu.model.rectangular_obstacle import RectangularObstacle
@@ -29,6 +30,12 @@ from math import pi
import math
import random
+class Cherries (Observable):
+
+ def __init__ (self):
+ Observable.__init__ (self)
+ self.cherries = [ ]
+
class Table (simu.model.table.Table):
def __init__ (self, cards = None):
@@ -94,6 +101,7 @@ class Table (simu.model.table.Table):
for py in (250, 600, 1000, 1400, 1750):
add_plate ((200, py), False)
add_plate ((3000 - 200, py), True)
+ self.cherries = Cherries ()
# Gifts.
self.gifts = [ ]
def add_gift (pos, color):