about summary refs log tree commit diff
path: root/layout.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-27 22:19:22 -0400
committerJune McEnroe <june@causal.agency>2019-03-27 22:19:22 -0400
commit27255d093b863efd331d993fea7c1f28b6ff4b00 (patch)
treecc87989e16b50fdc90483b91bd55d38a80ac4ab6 /layout.h
parentRemove unneeded include (diff)
downloadcards-27255d093b863efd331d993fea7c1f28b6ff4b00.tar.gz
cards-27255d093b863efd331d993fea7c1f28b6ff4b00.zip
Add FreeCell
Diffstat (limited to '')
-rw-r--r--layout.h27
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