home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Maps are always squares, therefore define only their edge lengths.
[plomrogue]
/
src
/
common
/
map.h
diff --git
a/src/common/map.h
b/src/common/map.h
index cac29dc8f111686be4eb3e4ed699c8c2e7422eb0..4a6d04126ad49d01e925b783e2e5136725c8803a 100644
(file)
--- a/
src/common/map.h
+++ b/
src/common/map.h
@@
-1,19
+1,19
@@
/* src/common/map.h
*
/* src/common/map.h
*
- *
Struct for the g
ame map.
+ *
G
ame map.
*/
#ifndef MAP_H
#define MAP_H
*/
#ifndef MAP_H
#define MAP_H
-#include
"yx_uint16.h" /* yx_uint16 struc
t */
+#include
<stdint.h> /* uint16_
t */
struct Map
{
struct Map
{
- struct yx_uint16 size; /* map's height/width in number of cells */
char * cells; /* sequence of bytes encoding map cells */
char * cells; /* sequence of bytes encoding map cells */
+ uint16_t length; /* map's edge length */
};
};