[gnome-klotski] The struct belongs to the class.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] The struct belongs to the class.
- Date: Wed, 5 Feb 2020 17:12:20 +0000 (UTC)
commit e0e7bc06fbf2275890a4e357299ed4d9107cc461
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Feb 5 14:42:50 2020 +0100
The struct belongs to the class.
src/puzzle.vala | 157 +++++++++++++++++++++++++++++---------------------------
1 file changed, 82 insertions(+), 75 deletions(-)
---
diff --git a/src/puzzle.vala b/src/puzzle.vala
index 344ca72..c2e9015 100644
--- a/src/puzzle.vala
+++ b/src/puzzle.vala
@@ -17,84 +17,91 @@
with GNOME Klotski. If not, see <https://www.gnu.org/licenses/>.
*/
-/*
- 1 2 4
+public class Puzzle : Object
+{
+ /*
+ 1 2 4
- 8 * 16
+ 8 * 16
- 32 64 128
-*/
-private const int[] image_map =
-{
- 0, 0,
-
- 64, 1,
- 66, 2,
- 2, 3,
-
- 16, 4,
- 24, 5,
- 8, 6,
-
- 208, 7,
- 248, 8,
- 104, 9,
-
- 214, 10,
- 255, 11,
- 107, 12,
-
- 22, 13,
- 31, 14,
- 11, 15,
-
- 18, 16,
- 10, 17,
- 80, 18,
- 72, 19,
-
-
- /* Misc */
- 56, 5,
- 152, 5,
- 70, 2,
- 67, 2,
- 194, 2,
- 98, 2,
- 9, 6,
- 20, 4,
- 144, 4,
- 3, 3,
- 40, 6,
- 25, 5,
- 28, 5,
- 96, 1,
- 19, 16,
- 201, 19,
- 146, 16,
- 198, 2,
- 84, 18,
- 46, 17,
- 112, 18,
- 6, 3,
- 184, 5,
- 192, 1,
- 147, 16,
- 73, 19,
- 42, 17,
- 200, 19,
- 99, 2,
- 116, 18,
- 29, 5,
- 14, 17,
- 26, 25,
- 224, 1,
-
- -1, -1
-};
+ 32 64 128
+ */
+ private const int [] image_map =
+ {
+ 0, 0, // 🞍
+
+ 64, 1, // ╻
+ 66, 2, // ┃
+ 2, 3, // ╹
+
+ 16, 4, // ╺
+ 24, 5, // ━
+ 8, 6, // ╸
+
+ 208, 7, // ▗
+ 248, 8, // ▄
+ 104, 9, // ▖
+
+ 214, 10, // ▐
+ 255, 11, // █
+ 107, 12, // ▌
+
+ 22, 13, // ▝
+ 31, 14, // ▀
+ 11, 15, // ▘
+
+ 18, 16, // ┗
+ 10, 17, // ┛
+ 80, 18, // ┏
+ 72, 19, // ┓
+
+ /* Follows in the file */
+ // small dot for creating the target
+ // empty
+ // dots for marking the red donkey, but not at scale? fixed thing?
+ // square for exit door
+ // black square (?)
+ // ??
+
+ /* Misc */
+ 56, 5,
+ 152, 5,
+ 70, 2,
+ 67, 2,
+ 194, 2,
+ 98, 2,
+ 9, 6,
+ 20, 4,
+ 144, 4,
+ 3, 3,
+ 40, 6,
+ 25, 5,
+ 28, 5,
+ 96, 1,
+ 19, 16,
+ 201, 19,
+ 146, 16,
+ 198, 2,
+ 84, 18,
+ 46, 17,
+ 112, 18,
+ 6, 3,
+ 184, 5,
+ 192, 1,
+ 147, 16,
+ 73, 19,
+ 42, 17,
+ 200, 19,
+ 99, 2,
+ 116, 18,
+ 29, 5,
+ 14, 17,
+ 26, 25,
+ 224, 1,
+
+ -1, -1
+ };
-public class Puzzle : Object
-{
public int width;
public int height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]