home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server/C: Set same server dir mode as Python variant does.
[plomrogue]
/
src
/
common
/
map.h
diff --git
a/src/common/map.h
b/src/common/map.h
index 8d454ca7ab1b040464a3f5a0ab7a86c6824697fb..2a37793979d85fbba6c91ad6640b06269eb6f890 100644
(file)
--- a/
src/common/map.h
+++ b/
src/common/map.h
@@
-1,4
+1,8
@@
/* src/common/map.h
/* src/common/map.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Game map.
*/
*
* Game map.
*/
@@
-6,13
+10,14
@@
#ifndef MAP_H
#define MAP_H
#ifndef MAP_H
#define MAP_H
-#include "yx_uint16.h" /* yx_uint16 struct */
+#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, i.e. both height and width */
};
};