summaryrefslogtreecommitdiffstats
path: root/labb4/constants.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-09 22:12:41 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-09 22:12:41 +0100
commit6a72f2f15c9f39b2a851b955b9b87abede8d0257 (patch)
tree53afef7ae52433d170fafd070941a5e57e6b44dc /labb4/constants.h
parent209bc7540a97bb238e70b9f9e248a0a0c756a4c0 (diff)
downloadtddd86-6a72f2f15c9f39b2a851b955b9b87abede8d0257.tar.gz
initial work
Diffstat (limited to 'labb4/constants.h')
-rw-r--r--labb4/constants.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/labb4/constants.h b/labb4/constants.h
new file mode 100644
index 0000000..b6e4f8c
--- /dev/null
+++ b/labb4/constants.h
@@ -0,0 +1,32 @@
+/**
+ * Copyright (C) David Wolfe, 1999. All rights reserved.
+ * Ported to Qt and adapted for TDDD86, 2015.
+ */
+
+#ifndef CONSTANTS_H
+#define CONSTANTS_H
+
+#include <QColor>
+
+// GUI constants
+const int MIN_X = 0;
+const int MIN_Y = 0;
+const int MAX_X = 39;
+const int MAX_Y = 39;
+const int UNIT_WIDTH = 10;
+const int UNIT_HEIGHT = 10;
+static const int SCENE_WIDTH = 400;
+static const int SCENE_HEIGHT = 400;
+const int JUNK_RADIUS = 9;
+const QColor JUNK_COLOR = QColor(0, 0, 0);
+const QColor ROBOT_COLOR = QColor(245, 95, 60);
+const QColor HERO_COLOR = QColor(237, 207, 114);
+
+// game constants
+const int MIN_ROBOTS = 10;
+const int MAX_ROBOTS = 80;
+const int ROBOTS_INC = 5; // Additional robots per round
+const int POINTS_PER_ROBOT = 10;
+const int WAIT_BONUS = 20; // Per robot
+
+#endif // CONSTANTS_H