• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

include/player_shop.h

Go to the documentation of this file.
00001 /************************************************************************
00002 *            Atrinik, a Multiplayer Online Role Playing Game            *
00003 *                                                                       *
00004 *    Copyright (C) 2009-2010 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 #include <include.h>
00031 
00032 #ifndef SHOP_H
00033 #define SHOP_H
00034 
00036 typedef struct shop_struct
00037 {
00039     sint32 tag;
00040 
00042     int price;
00043 
00045     char price_buf[MAX_INPUT_STR];
00046 
00048     int nrof;
00049 
00051     struct shop_struct *next;
00052 } _shop_struct;
00053 
00055 typedef struct shop_gui_struct
00056 {
00058     _shop_struct *shop_items;
00059 
00064     int shop_state;
00065 
00067     int shop_items_count;
00068 
00070     sint32 selected_tag;
00071 
00076     int input_type;
00077 
00079     int input_count;
00080 
00082     int current_cursor_pos;
00083 
00085     char shop_owner[MAX_BUF];
00086 } _shop_gui_struct;
00087 
00089 typedef struct coins_struct
00090 {
00092     char name[2];
00093 
00095     sint32 value;
00096 } coins_struct;
00097 
00098 extern _shop_gui_struct *shop_gui;
00099 
00106 #define SHOP_INPUT_TYPE_NROF    1
00107 
00108 #define SHOP_INPUT_TYPE_PRICE   2
00109 
00110 #define SHOP_INPUT_TYPES        2
00111 
00120 #define SHOP_STATE_NONE     0
00121 
00122 #define SHOP_STATE_OPEN     1
00123 
00124 #define SHOP_STATE_BUYING   2
00125 
00131 #define SHOP_MAX_ITEMS 28
00132 
00134 #define MAX_PRICE_VALUE 100000000
00135 
00136 #endif

Generated on Mon Jan 10 2011 00:00:06 for Atrinik Client by  doxygen 1.7.1