[Tux4kids-commits] [SCM] tuxhistory - Educational history game branch, master, updated. a5c8e974577671290a21aa2dacfeabb77cd56b5b
julio (none)
julio at julio-desktop.
Sat Jun 5 19:31:03 UTC 2010
The following commit has been merged in the master branch:
commit a5c8e974577671290a21aa2dacfeabb77cd56b5b
Author: julio <julio at julio-desktop.(none)>
Date: Sat Jun 5 14:30:06 2010 -0500
First map.c / h files
diff --git a/src/map.c b/src/map.c
new file mode 100644
index 0000000..7f1c3d5
--- /dev/null
+++ b/src/map.c
@@ -0,0 +1,3 @@
+#include "map.h"
+
+
diff --git a/src/map.h b/src/map.h
new file mode 100644
index 0000000..ea0ba50
--- /dev/null
+++ b/src/map.h
@@ -0,0 +1,37 @@
+/*
+ * This file contains the map data structure
+ * called th_map. th_map is a two dimensional
+ * data structure, made bye with pointers.
+ * This data structure shoultn't be accesed
+ * directly.
+ */
+
+enum{
+ SEA,
+ DEEP_SEA,
+ DESERT,
+ SNOW,
+ GRASS,
+ GRASS2,
+ BEACH,
+ ROCKS,
+ MOUNTAIN
+};
+
+// th_map is the main data strucutre
+// th_map_tilde specifies the terrain
+// of the isometric map
+
+typedef struct th_map{
+ int height; //Height of this tilde
+ int terrain;
+}th_map;
+
+//The map array.
+th_map **map;
+
+void th_draw_map(void);
+
+//loads the XML map file.
+void th_load(void);
+
--
tuxhistory - Educational history game
More information about the Tux4kids-commits
mailing list