From 78d2f3d295c56e976c13b187b7723670411e4101 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 24 Apr 2013 22:44:30 +0200 Subject: digital/io-hub/src/apbirthday, host/simu: add cherries cannon simulation --- host/simu/model/table_eurobot2013.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/simu/model/table_eurobot2013.py') 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): -- cgit v1.2.3