diff options
author | June McEnroe <june@causal.agency> | 2019-03-27 22:19:22 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-03-27 22:19:22 -0400 |
commit | 27255d093b863efd331d993fea7c1f28b6ff4b00 (patch) | |
tree | cc87989e16b50fdc90483b91bd55d38a80ac4ab6 /layout.h | |
parent | Remove unneeded include (diff) | |
download | cards-27255d093b863efd331d993fea7c1f28b6ff4b00.tar.gz cards-27255d093b863efd331d993fea7c1f28b6ff4b00.zip |
Add FreeCell
Diffstat (limited to '')
-rw-r--r-- | layout.h | 27 |
1 files changed, 10 insertions, 17 deletions
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 |