Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIManager.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2007 Dylan Blair
3 //
4 // email: dblair@alumni.cs.utexas.edu
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 
21 #ifndef AIMANAGER_H
22 #define AIMANAGER_H
23 
24 #include "AILogic.h"
25 
26 #ifdef USE_SPLAY_TREE_KB
27 #include "AIKBSplayTree.h"
28 #else
29 #include "AIKBHashTable.h"
30 #endif
31 
32 #include <queue>
33 
34 namespace OpenSkyNet {
35  namespace AI {
36  extern std::queue<Record> g_recordQueue;
37  extern FSM* g_fSMs[FSM_MAX];
38  extern Logic* g_logics[LOGIC_MAX];
39 #ifdef USE_SPLAY_TREE_KB
40  extern KBSplayTree g_kBImpl;
41 #else
43 #endif
44 
45  extern FSM DEFAULT_FSM;
47 
48  void createAllStates();
49  void createAllFSMs();
50  void createAllRules();
51  }
52 }
53 
54 #endif //AIMANAGER_H
FSM * g_fSMs[FSM_MAX]
Definition: AIManager.cpp:13
void createAllRules()
Definition: AIManager.cpp:49
Definition: AIFSM.h:74
FSM DEFAULT_FSM(DEFAULT_FSM_ID)
Definition: AIManager.h:45
Logic DEFAULT_LOGIC(DEFAULT_LOGIC_ID)
Definition: AIManager.h:46
Definition: AIKBHashTable.h:33
Definition: AIConsts.h:29
Definition: AILogic.h:35
std::queue< Record > g_recordQueue
Definition: AIManager.cpp:12
Logic * g_logics[LOGIC_MAX]
Definition: AIManager.cpp:14
KBHashTable g_kBImpl(200, 0, 0)
Definition: AIManager.h:42
Definition: AIConsts.h:33
void createAllFSMs()
Definition: AIManager.cpp:41
void createAllStates()
Definition: AIManager.cpp:25