|
Atrinik Server 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 00040 #ifndef TIMERS_H 00041 #define TIMERS_H 00042 00043 #include <global.h> 00044 00051 #define TIMER_MODE_DEAD 0 00052 00057 #define TIMER_MODE_SECONDS 1 00058 00063 #define TIMER_MODE_CYCLES 2 00064 00067 typedef struct _cftimer 00068 { 00071 int mode; 00072 00074 long delay; 00075 00077 object *ob; 00078 } cftimer; 00079 00094 #define MAX_TIMERS 1000 00095 00102 #define TIMER_ERR_NONE 0 00103 00104 #define TIMER_ERR_ID -1 00105 00106 #define TIMER_ERR_OBJ -2 00107 00108 #define TIMER_ERR_MODE -3 00109 00111 #endif
1.7.4