summaryrefslogtreecommitdiff
path: root/host/simu/model/table_eurobot2013.py
diff options
context:
space:
mode:
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):