2012-05-07 06:56:00 +00:00
|
|
|
/**
|
|
|
|
* \addtogroup tetris
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file bearing.h
|
|
|
|
* @brief Public interface for denoting the current bearing of the bucket.
|
|
|
|
* @author Christian Kroll
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-08-22 03:07:46 +00:00
|
|
|
#ifndef BEARING_H_
|
|
|
|
#define BEARING_H_
|
|
|
|
|
2011-06-02 14:00:51 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2012-05-07 06:56:00 +00:00
|
|
|
/**
|
|
|
|
* Denotes the bearing of the bucket.
|
|
|
|
*/
|
|
|
|
enum tetris_bearing_e
|
2010-08-22 03:07:46 +00:00
|
|
|
{
|
2012-05-07 06:56:00 +00:00
|
|
|
TETRIS_BEARING_0, //!< TETRIS_BEARING_0
|
|
|
|
TETRIS_BEARING_90, //!< TETRIS_BEARING_90
|
|
|
|
TETRIS_BEARING_180,//!< TETRIS_BEARING_180
|
|
|
|
TETRIS_BEARING_270 //!< TETRIS_BEARING_270
|
2011-02-25 04:31:34 +00:00
|
|
|
};
|
|
|
|
#ifdef NDEBUG
|
|
|
|
typedef uint8_t tetris_bearing_t;
|
|
|
|
#else
|
2012-05-07 06:56:00 +00:00
|
|
|
typedef enum tetris_bearing_e tetris_bearing_t;
|
2011-02-25 04:31:34 +00:00
|
|
|
#endif
|
2010-08-22 03:07:46 +00:00
|
|
|
|
2012-05-07 06:56:00 +00:00
|
|
|
|
2010-08-22 03:07:46 +00:00
|
|
|
#endif /* BEARING_H_ */
|
2012-05-07 06:56:00 +00:00
|
|
|
|
|
|
|
/*@}*/
|