summaryrefslogtreecommitdiff
path: root/host/simu/model/table_eurobot2011.py
diff options
context:
space:
mode:
authorNicolas Schodet2011-05-15 22:44:20 +0200
committerNicolas Schodet2011-05-15 22:44:20 +0200
commit201aa07cbd28c6be8c4003f126b1ae258f859c68 (patch)
tree1f38db503d0fc063b6d82fbe45aa003a86ce0ba2 /host/simu/model/table_eurobot2011.py
parent73f25d3310706c5d7a559f120805c54860b16795 (diff)
host/simu: handle dropping tower on the table
Diffstat (limited to 'host/simu/model/table_eurobot2011.py')
-rw-r--r--host/simu/model/table_eurobot2011.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/simu/model/table_eurobot2011.py b/host/simu/model/table_eurobot2011.py
index c9c1d193..f4bb63b7 100644
--- a/host/simu/model/table_eurobot2011.py
+++ b/host/simu/model/table_eurobot2011.py
@@ -81,3 +81,9 @@ class Table (simu.model.table.Table):
self.pawns.append (pawn)
# Add everything to obstacles.
self.obstacles += self.pawns
+
+ def add_pawn (self, pawn):
+ self.pawns.append (pawn)
+ self.obstacles.append (pawn)
+ self.notify ()
+