-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaibasmrg.h
61 lines (45 loc) · 1.4 KB
/
aibasmrg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
@Copyright Looking Glass Studios, Inc.
1996,1997,1998,1999,2000 Unpublished Work.
*/
///////////////////////////////////////////////////////////////////////////////
// $Header: r:/t2repos/thief2/src/ai/aibasmrg.h,v 1.8 1998/10/30 12:27:17 TOML Exp $
//
//
//
#ifndef __AIBASMRG_H
#define __AIBASMRG_H
#include <aiapimov.h>
#include <aibascmp.h>
#include <aimovsug.h>
#include <aiutils.h>
#pragma once
#pragma pack(4)
///////////////////////////////////////////////////////////////////////////////
//
// CLASS: cAIMoveRegulator
//
// Base class of all movement regulators
//
class cAIMoveRegulator : public cAIComponentBase<IAIMoveRegulator, &IID_IAIMoveRegulator>
{
public:
cAIMoveRegulator(eAITimerPeriod period = AICustomTime(200));
virtual ~cAIMoveRegulator();
STDMETHOD_(BOOL, NewRegulations)();
STDMETHOD (SuggestRegulations)(cAIMoveSuggestions &);
STDMETHOD_(BOOL, AssistGoal)(const sAIMoveGoal & goal,
sAIMoveGoal * pResultGoal);
STDMETHOD_(BOOL, WantsInterrupt)();
protected:
cAIMoveSuggestions m_Suggestions;
cAITimer m_Timer;
};
///////////////////////////////////////
inline cAIMoveRegulator::cAIMoveRegulator(eAITimerPeriod period)
: m_Timer(period)
{
}
///////////////////////////////////////////////////////////////////////////////
#pragma pack()
#endif /* !__AIBASMRG_H */