diff --git a/gamemanager.h b/gamemanager.h index 0db6f59..62343fe 100644 --- a/gamemanager.h +++ b/gamemanager.h @@ -25,11 +25,11 @@ enum class ActionMode { }; struct TileRoad { - int tileX; - int tileY; - int playerId; - QString roadTypeId; // "dirt", "stone", "rail" - unsigned char connectionMask; // 6 bits: bit e (0..5) is 1 if connected to neighbor across edge e + QString roadTypeId = "dirt"; // "dirt", "stone", "rail" + int tileX = 0; + int tileY = 0; + int playerId = 1; + unsigned char connectionMask = 0; // 6 bits: bit e (0..5) is 1 if connected to neighbor across edge e QVector3D worldPos; bool hasConnection(int edge) const { @@ -49,15 +49,6 @@ struct TileImprovement { QVector3D worldPos; }; -struct TileRoad { - QString roadTypeId = "dirt"; - int tileX = 0; - int tileY = 0; - int playerId = 1; - QVector3D worldPos; - unsigned char connectionMask = 0; // bit e (0..5) indicates connected across edge e -}; - struct FloatingText { QString text; QVector3D worldPos;