client/map.h

Go to the documentation of this file.
00001 /* $Id: map.h jjs $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY.
00010 
00011    See the COPYING file for more details.
00012 */
00013 #ifndef MAP_H_
00014 #define MAP_H_
00015 
00016 // Movement of map
00017 // input new data on map
00018 
00020 
00021 struct location {
00022     int x;
00023     int y;
00024     int direction;
00025 };
00026 
00027 location current_position;
00028 location selected_position;
00029 
00031 
00032 enum terrain_type {
00033     Terrain_sea, Terrain_lake,
00034     Terrain_flat, Terrain_flowing, Terrain_hills, Terrain_mountain, Terrain_range
00035 };
00036 
00038 
00039 enum growth_type {
00040     Growth_forest, Growth_fields, Growth_grass, Growth_swamp, Growth_moors, Growth_barren
00041 };
00042 
00044 
00045 struct client_area {
00046     int terrain;
00047     int growth;
00048     string name;
00049     int city;
00050     bool castle;
00051     bool wall;
00052     bool moat;
00053     bool cathedral;
00054     bool palace;
00055     game_party party;
00056 }
00057 
00059 
00060 area[625] map;
00061 
00062 #endif /*MAP_H_*/


Generated on Tue Jan 1 17:30:00 2008 for client/map.h Source File by  doxygen   Visit the project page on SourceForge.net Logo