00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #if !defined(AFX_SIMPLEAI_H__33AB5540_9AF8_405E_9423_B2EC11F51808__INCLUDED_)
00024 #define AFX_SIMPLEAI_H__33AB5540_9AF8_405E_9423_B2EC11F51808__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 "cMonsterServer.h"
00033
00034 class SimpleAI
00035 {
00036 public:
00037 SimpleAI();
00038 virtual ~SimpleAI();
00039
00040 static bool AddMonster ( DWORD dwGUID );
00041 static bool AddPet ( DWORD dwGUID, DWORD dwOGUID );
00042 static bool RemoveMonster ( DWORD dwGUID );
00043 static void ExecuteActions ( );
00044
00045 static void SetAction ( DWORD dwGUID, DWORD dwEvent, WORD wDelay );
00046
00047 static void SetMoving ( DWORD dwGUID );
00048 static void SetMovingComplete ( DWORD dwGUID );
00049
00050 static void SetUnderAttack ( DWORD dwGUID, DWORD dwTarget );
00051 static void SetAttackComplete ( DWORD dwGUID );
00052 static void SetTargetKilled ( DWORD dwTarget );
00053 static void SetAttackEvent ( DWORD dwGUID, DWORD dwTarget, DWORD dwEvent, WORD wDelay );
00054 static void MoveMonsters ( );
00055
00056 static DWORD Monsters[MAX_MONSTERS][8];
00057
00058 static time_t longtime;
00059 static time_t NextActionTime;
00060 };
00061
00062 #endif // !defined(AFX_SIMPLEAI_H__33AB5540_9AF8_405E_9423_B2EC11F51808__INCLUDED_)