|
Atrinik Client 2.5
|
00001 /************************************************************************ 00002 * Atrinik, a Multiplayer Online Role Playing Game * 00003 * * 00004 * Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team * 00005 * * 00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game) * 00007 * and Crossfire (Multiplayer game for X-windows). * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00022 * * 00023 * The author can be reached at admin@atrinik.org * 00024 ************************************************************************/ 00025 00030 #ifndef REGION_MAP_H 00031 #define REGION_MAP_H 00032 00034 #define RM_BORDER_SIZE 25 00035 00037 #define RM_ZOOM_DEFAULT 100 00038 00039 #define RM_ZOOM_MIN 50 00040 00041 #define RM_ZOOM_MAX 200 00042 00043 #define RM_ZOOM_PROGRESS 10 00044 00046 #define RM_SCROLL 10 00047 00048 #define RM_SCROLL_SHIFT 50 00049 00051 typedef struct region_map_struct 00052 { 00054 char *path; 00055 00057 int xpos; 00058 00060 int ypos; 00061 } region_map_struct; 00062 00064 typedef struct region_label_struct 00065 { 00067 int x; 00068 00070 int y; 00071 00073 char *name; 00074 00076 char *text; 00077 00084 int hidden; 00085 } region_label_struct; 00086 00088 typedef struct region_map_tooltip 00089 { 00091 int x; 00092 00094 int y; 00095 00097 int w; 00098 00100 int h; 00101 00103 char *name; 00104 00106 char *text; 00107 00109 int hidden; 00110 00112 uint8 outline; 00113 00115 SDL_Color outline_color; 00116 00118 uint8 outline_size; 00119 } region_map_tooltip; 00120 00122 typedef struct region_map_def 00123 { 00125 region_map_struct *maps; 00126 00128 size_t num_maps; 00129 00131 region_map_tooltip *tooltips; 00132 00134 size_t num_tooltips; 00135 00137 region_label_struct *labels; 00138 00140 size_t num_labels; 00141 00143 int pixel_size; 00144 00146 int map_size_x; 00147 00149 int map_size_y; 00150 } region_map_def; 00151 00157 #define RM_TYPE_LABEL 1 00158 00159 #define RM_TYPE_TOOLTIP 2 00160 00162 #endif
1.7.4