(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.

This commit is contained in:
rubidium
2007-01-10 18:56:51 +00:00
parent ce75f6549d
commit a7d0cdf95f
190 changed files with 2825 additions and 2208 deletions

View File

@@ -3,7 +3,10 @@
#ifndef ROAD_H
#define ROAD_H
#include "helpers.hpp"
typedef enum RoadBits {
ROAD_NONE = 0U,
ROAD_NW = 1U,
ROAD_SW = 2U,
ROAD_SE = 4U,
@@ -13,6 +16,8 @@ typedef enum RoadBits {
ROAD_ALL = ROAD_X | ROAD_Y
} RoadBits;
DECLARE_ENUM_AS_BIT_SET(RoadBits);
static inline RoadBits ComplementRoadBits(RoadBits r)
{
return (RoadBits)(ROAD_ALL ^ r);