1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 /** @file squirrel.cpp allows loading squirrel scripts to control an AI */ |
3 /** @file squirrel.cpp allows loading squirrel scripts to control an AI */ |
4 |
4 |
5 #include "../../stdafx.h" |
5 #include "../../stdafx.h" |
6 #include "squirrel.hpp" |
|
7 #include "../../debug.h" |
6 #include "../../debug.h" |
|
7 #include "../../openttd.h" |
8 #include "../../string.h" |
8 #include "../../string.h" |
9 #include "../../fios.h" |
9 #include "../../fios.h" |
|
10 #include "squirrel.hpp" |
10 #include <sys/types.h> |
11 #include <sys/types.h> |
11 #include <sys/stat.h> |
12 #include <sys/stat.h> |
12 |
13 |
13 #define SQUIRREL_CLASS |
14 /* Convert all AI related classes to Squirrel data */ |
|
15 #define DEFINE_SQUIRREL_CLASS |
14 #include "../../squirrel_helper.hpp" |
16 #include "../../squirrel_helper.hpp" |
15 #include "../../squirrel_class.hpp" |
17 #include "../../squirrel_class.hpp" |
16 #include "../core/ai_base.hpp" |
18 #include "../core/ai_base.hpp" |
17 #include "../core/ai_cargo.hpp" |
19 #include "../core/ai_cargo.hpp" |
18 #include "../core/ai_company.hpp" |
20 #include "../core/ai_company.hpp" |