npctime.h

Go to the documentation of this file.
00001 /*
00002  *  Npctime.h - Timed-even handlers for NPC's.
00003  *
00004  *  Copyright (C) 2000-2001  The Exult Team
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 as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef NPCTIME_H
00022 #define NPCTIME_H 1
00023 
00024 #include "tqueue.h"
00025 
00026 class Game_window;
00027 class Actor;
00028 class Npc_hunger_timer;
00029 class Npc_poison_timer;
00030 class Npc_sleep_timer;
00031 class Npc_invisibility_timer;
00032 class Npc_protection_timer;
00033 class Npc_flag_timer;
00034 
00035 /*
00036  *  List of references to timers for an NPC.
00037  */
00038 class Npc_timer_list
00039   {
00040   Actor *npc;
00041   Npc_hunger_timer *hunger;
00042   Npc_poison_timer *poison;
00043   Npc_sleep_timer *sleep;
00044   Npc_invisibility_timer *invisibility;
00045   Npc_protection_timer *protection;
00046   Npc_flag_timer *might, *curse, *paralyze;
00047 public:
00048   friend class Npc_hunger_timer;
00049   friend class Npc_poison_timer;
00050   friend class Npc_sleep_timer;
00051   friend class Npc_invisibility_timer;
00052   friend class Npc_protection_timer;
00053   friend class Npc_flag_timer;
00054   Npc_timer_list(Actor *n) : npc(n), hunger(0), poison(0), sleep(0),
00055       invisibility(0), protection(0), might(0), curse(0),
00056       paralyze(0)
00057     {  }
00058   ~Npc_timer_list();
00059   void start_hunger();
00060   void start_poison();
00061   void start_sleep();
00062   void start_invisibility();
00063   void start_protection();
00064   void start_might();
00065   void start_curse();
00066   void start_paralyze();
00067   };
00068 
00069 #endif  /* INCL_NPCTIME */

Generated on Mon Jul 9 14:42:48 2007 for ExultEngine by  doxygen 1.5.1