00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #if !defined(AFX_ORPSECLEANER_H__DC16D656_DC96_492A_834C_14B0D779C272__INCLUDED_)
00024 #define AFX_ORPSECLEANER_H__DC16D656_DC96_492A_834C_14B0D779C272__INCLUDED_
00025
00026 #if _MSC_VER > 1000
00027 #pragma once
00028 #endif // _MSC_VER > 1000
00029 #include <time.h>
00030 #include "Shared.h"
00031 #include "WorldManager.h"
00032 #include "SimpleAI.h"
00033
00034
00035 class CorpseCleaner
00036 {
00037 public:
00038 CorpseCleaner();
00039 virtual ~CorpseCleaner();
00040 static void Cleanup();
00041 static bool AddCorpse(DWORD dwGUID, DWORD dwDelay = 0,DWORD dwReSpawn = 0);
00042 static bool RemoveCorpse(DWORD dwGUID);
00043 static DWORD Corpses[MAX_CORPSES][4];
00044 static time_t longtime;
00045 static time_t NextCleanTime;
00046
00047 };
00048
00049 #endif // !defined(AFX_ORPSECLEANER_H__DC16D656_DC96_492A_834C_14B0D779C272__INCLUDED_)