summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-03 16:13:12 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-03 16:13:12 +0000
commit182b5231ba13a0a5865a1b7dcb4731c3009d4c57 (patch)
treed0f536d7c3357825efc5f527922c10487517e8bf /src/map.h
parentb48b39c87da9fc2c59be533e1dc445cc82c2f323 (diff)
downloadmana-client-182b5231ba13a0a5865a1b7dcb4731c3009d4c57.tar.gz
mana-client-182b5231ba13a0a5865a1b7dcb4731c3009d4c57.tar.bz2
mana-client-182b5231ba13a0a5865a1b7dcb4731c3009d4c57.tar.xz
mana-client-182b5231ba13a0a5865a1b7dcb4731c3009d4c57.zip
Some indent, comment and const parameter changes.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 02dba1c3..323a00d0 100644
--- a/src/map.h
+++ b/src/map.h
@@ -17,6 +17,8 @@
* You should have received a copy of the GNU General Public License
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id$
*/
#ifndef _TMW_MAP_H
@@ -67,12 +69,25 @@ struct MAP {
char bg_music[20];
};
+/** Loads a map file */
bool load_map(char *map_file);
+
+/** Set walkability flag for a tile */
void set_walk(short x_c, short y_c, bool walkable);
+
+/** Tell if a tile is walkable or not */
bool get_walk(short x_c, short y_c);
+
+/** Tell if a tile is walkable or not (0=walkable,1=not walkable) */
unsigned char get_path_walk(unsigned short x, unsigned short y);
+
+/** Tell if a tile is animated or not */
bool get_anim(short x_c, short y_c, char layer);
+
+/** Set tile ID */
void set_tile(short x_c, short y_c, char layer, unsigned short id);
+
+/** Return tile ID */
unsigned short get_tile(short x_c, short y_c, char layer);
/** Return tile x coordinate in tileset */