summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/apbirthday/top.hh
diff options
context:
space:
mode:
authorNicolas Schodet2013-04-10 00:42:00 +0200
committerNicolas Schodet2013-04-10 01:00:49 +0200
commitc6fb6460e3b71380049326688a1d5ade10dc964e (patch)
treefc6730c230dad39983dee0d3f274b255a456aef8 /digital/io-hub/src/apbirthday/top.hh
parentbbd0d642484b2865b8290e70e5b7c4ba45a41856 (diff)
digital/io-hub/src/apbirthday: make a better decision on follow direction
Diffstat (limited to 'digital/io-hub/src/apbirthday/top.hh')
-rw-r--r--digital/io-hub/src/apbirthday/top.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/digital/io-hub/src/apbirthday/top.hh b/digital/io-hub/src/apbirthday/top.hh
index 09a1b365..229c909b 100644
--- a/digital/io-hub/src/apbirthday/top.hh
+++ b/digital/io-hub/src/apbirthday/top.hh
@@ -23,6 +23,13 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// }}}
+#include "defs.hh"
+#include "candles.hh"
+
+/// Compute the candle to blow for a given angle, when going in the given
+/// direction.
+int
+top_candle_for_angle (uint16_t a, Candles::Floor floor, int dir_sign);
/// Test whether there is an obstacle blocking in the given direction.
bool