00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef POTION_EXPIRATION_EVENT_H
00019 #define POTION_EXPIRATION_EVENT_H
00020
00021 #include "../constants.h"
00022 #include "../item.h"
00023 #include "../creature.h"
00024 #include "event.h"
00025
00026
00031 class Creature;
00032 class Session;
00033 class Item;
00034
00035 class PotionExpirationEvent : public Event {
00036
00037 private:
00038 Creature *creature;
00039 int potionSkill;
00040 int amount;
00041 Session *session;
00042
00043 public:
00044
00045 void execute();
00046
00047 PotionExpirationEvent(Date currentDate, Date timeOut, Creature *c, Item *item, Session *session, int nbExecutionsToDo);
00048 PotionExpirationEvent(Date currentDate, Date timeOut, Creature *c, int potionSkill, int amount, Session *session, int nbExecutionsToDo);
00049 PotionExpirationEvent();
00050 virtual ~PotionExpirationEvent();
00051
00052 };
00053
00054 #endif