From 27255d093b863efd331d993fea7c1f28b6ff4b00 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 27 Mar 2019 22:19:22 -0400 Subject: Add FreeCell --- layout.h | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'layout.h') diff --git a/layout.h b/layout.h index 1f55967..a9b3917 100644 --- a/layout.h +++ b/layout.h @@ -73,6 +73,16 @@ struct Style { int deltaYFront; }; +enum { + SquareIncrement = 24 / 3, + SquareDeltaX = 2, + SquareDeltaY = 1, +}; +static const struct Style Flat = { 1, 0, 0, 0, 0 }; +static const struct Style Square = { + SquareIncrement, SquareDeltaX, SquareDeltaY, SquareDeltaX, SquareDeltaY, +}; + static inline void layoutStack( struct Layout *layout, SDL_Rect *rect, @@ -93,21 +103,4 @@ layoutStack( } } -enum { - SquareIncrement = 24 / 3, - SquareDeltaX = 2, - SquareDeltaY = 1, - - FanDownDeltaX = 0, - FanDownDeltaYBack = 3, - FanDownDeltaYFront = 15, -}; - -static const struct Style Square = { - SquareIncrement, SquareDeltaX, SquareDeltaY, SquareDeltaX, SquareDeltaY, -}; -static const struct Style FanDown = { - 1, FanDownDeltaX, FanDownDeltaYBack, FanDownDeltaX, FanDownDeltaYFront, -}; - #endif -- cgit 1.4.1