|
@@ -8,6 +8,7 @@
|
|
|
#include "bomberstudent_server.h"
|
|
|
#include "client.h"
|
|
|
#include "file.h"
|
|
|
+#include "game.h"
|
|
|
|
|
|
/* --- Extern --- */
|
|
|
extern Error error;
|
|
@@ -230,6 +231,21 @@ int array_parse(){
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
+int size(){
|
|
|
+ char* content;
|
|
|
+ int* size;
|
|
|
+
|
|
|
+ content = file_get_content("map/map1");
|
|
|
+ size = map_size(content);
|
|
|
+ printf("Width : %d\n", size[WIDTH]);
|
|
|
+ printf("Height : %d\n", size[HEIGHT]);
|
|
|
+
|
|
|
+ free(content);
|
|
|
+ free(size);
|
|
|
+
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+
|
|
|
int main(){
|
|
|
//return parse();
|
|
|
//return encode();
|
|
@@ -257,5 +273,6 @@ int main(){
|
|
|
|
|
|
//return files();
|
|
|
//return array_encode();
|
|
|
- return array_parse();
|
|
|
+ //return array_parse();
|
|
|
+ return size();
|
|
|
}
|