summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub
diff options
context:
space:
mode:
authorNicolas Schodet2013-05-10 09:30:26 +0200
committerNicolas Schodet2013-05-10 09:30:26 +0200
commit1d4202e1d63a6e4a2c4838cdbb949b69ea3f89b2 (patch)
tree4815d633b1eab82c364810e89efc3982173e3f21 /digital/io-hub
parente46d9170d89cbbea0d3f88f0004f1fd07ce48e46 (diff)
digital/io-hub/src/apbirthday: fix strat initialisation
Diffstat (limited to 'digital/io-hub')
-rw-r--r--digital/io-hub/src/apbirthday/strat.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/digital/io-hub/src/apbirthday/strat.cc b/digital/io-hub/src/apbirthday/strat.cc
index bc001154..2f409cab 100644
--- a/digital/io-hub/src/apbirthday/strat.cc
+++ b/digital/io-hub/src/apbirthday/strat.cc
@@ -53,18 +53,6 @@ Strat::Strat ()
void
Strat::color_init ()
{
- if (team_color)
- plate_visited_[1] = true;
- else
- {
- plate_visited_[5 + 1] = true;
- // TODO: plate out of reach.
- plate_visited_[0] = true;
- // TODO: this gift is out of reach.
- robot->gifts.open[3] = true;
- }
- // TODO: plate out of reach.
- plate_visited_[9] = true;
// Pre-computed positions.
pos_[POS_CANDLES] = pg_cake_pos;
for (int i = 0; i < plate_nb; i++)
@@ -90,6 +78,19 @@ Strat::color_init ()
pos_[POS_GIFT_2].y = pg_gifts_distance + BOT_SIZE_SIDE;
pos_[POS_GIFT_3].x = 2100;
pos_[POS_GIFT_3].y = pg_gifts_distance + BOT_SIZE_SIDE;
+ // Out of reach and visited items.
+ if (team_color)
+ plate_visited_[1] = true;
+ else
+ {
+ plate_visited_[5 + 1] = true;
+ // TODO: plate out of reach.
+ plate_visited_[0] = true;
+ // TODO: this gift is out of reach.
+ robot->gifts.open[3] = true;
+ }
+ // TODO: plate out of reach.
+ plate_visited_[9] = true;
}
void