-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbot_navigate.h
47 lines (38 loc) · 1.15 KB
/
bot_navigate.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
///////////////////////////////////////////////////////////////////////////////////////////////
//
// -- GNU -- open source
// Please read and agree to the mb_gnu_license.txt file
// (the file is located in the marine_bot source folder)
// before editing or distributing this source code.
// This source code is free for use under the rules of the GNU General Public License.
// For more information goto:: http://www.gnu.org/licenses/
//
// credits to - valve, botman.
//
// Marine Bot - code by Frank McNeil, Kota@, Mav, Shrike.
//
// (http://www.marinebot.tk)
//
//
// bot_navigate.h
//
////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef BOT_NAVIGATE_H
#define BOT_NAVIGATE_H
#include <map>
#include <list>
#include <string>
#include "bot.h"
typedef bool (*FUN)(bot_t *pBot);
struct NaviPair {
NaviPair() { ptr = NULL; }
std::string name;
FUN ptr;
};
typedef std::map<std::string,FUN> NavigationMethods;
typedef std::list<NaviPair> NavigationList;
extern NavigationMethods NMethodsDict;
extern NavigationList NMethodsList;
bool BotOnPath1(bot_t *pBot);
int BotOnPath(bot_t *pBot);
#endif // BOT_NAVIGATE_H