From 7087be1f02be293ed56dad49961be0cd9a35027b Mon Sep 17 00:00:00 2001 From: alexvins Date: Sat, 15 Sep 2012 18:44:55 +0000 Subject: [PATCH] C::B project files initial import + workspace file (not include ERM and Battle AI) + project files * svn:ignore setup --- AI/BattleAI/BattleAI.cbp | 69 ++++++++++++++ AI/EmptyAI/EmptyAI.cbp | 69 ++++++++++++++ AI/EmptyAI/exp_funcs.cpp | 10 +-- AI/FuzzyLite/FuzzyLite.cbp | 129 ++++++++++++++++++++++++++ AI/StupidAI/StupidAI.cbp | 70 +++++++++++++++ AI/VCAI/VCAI.cbp | 80 +++++++++++++++++ Scripting/ERM/ERM.cbp | 84 +++++++++++++++++ VCMI_client.cbp | 167 ++++++++++++++++++++++++++++++++++ VCMI_lib.cbp | 180 +++++++++++++++++++++++++++++++++++++ VCMI_server.cbp | 98 ++++++++++++++++++++ vcmi.workspace | 23 +++++ 11 files changed, 974 insertions(+), 5 deletions(-) create mode 100644 AI/BattleAI/BattleAI.cbp create mode 100644 AI/EmptyAI/EmptyAI.cbp create mode 100644 AI/FuzzyLite/FuzzyLite.cbp create mode 100644 AI/StupidAI/StupidAI.cbp create mode 100644 AI/VCAI/VCAI.cbp create mode 100644 Scripting/ERM/ERM.cbp create mode 100644 VCMI_client.cbp create mode 100644 VCMI_lib.cbp create mode 100644 VCMI_server.cbp create mode 100644 vcmi.workspace diff --git a/AI/BattleAI/BattleAI.cbp b/AI/BattleAI/BattleAI.cbp new file mode 100644 index 000000000..e488ff372 --- /dev/null +++ b/AI/BattleAI/BattleAI.cbp @@ -0,0 +1,69 @@ + + + + + + diff --git a/AI/EmptyAI/EmptyAI.cbp b/AI/EmptyAI/EmptyAI.cbp new file mode 100644 index 000000000..5c42e04ab --- /dev/null +++ b/AI/EmptyAI/EmptyAI.cbp @@ -0,0 +1,69 @@ + + + + + + diff --git a/AI/EmptyAI/exp_funcs.cpp b/AI/EmptyAI/exp_funcs.cpp index 7c3279984..d168af4ad 100644 --- a/AI/EmptyAI/exp_funcs.cpp +++ b/AI/EmptyAI/exp_funcs.cpp @@ -3,27 +3,27 @@ #include "CEmptyAI.h" std::set ais; -extern "C" DLL_LINKAGE int GetGlobalAiVersion() +extern "C" DLL_EXPORT int GetGlobalAiVersion() { return AI_INTERFACE_VER; } -extern "C" DLL_LINKAGE void GetAiName(char* name) +extern "C" DLL_EXPORT void GetAiName(char* name) { strcpy(name,NAME); } -extern "C" DLL_LINKAGE char * GetAiNameS() +extern "C" DLL_EXPORT char * GetAiNameS() { char * ret = new char[50]; strcpy(ret,NAME); return ret; } -extern "C" DLL_LINKAGE CGlobalAI * GetNewAI() +extern "C" DLL_EXPORT CGlobalAI * GetNewAI() { return new CEmptyAI(); // return } -extern "C" DLL_LINKAGE void ReleaseAI(CGlobalAI * i) +extern "C" DLL_EXPORT void ReleaseAI(CGlobalAI * i) { delete (CEmptyAI*)i; ais.erase(i); diff --git a/AI/FuzzyLite/FuzzyLite.cbp b/AI/FuzzyLite/FuzzyLite.cbp new file mode 100644 index 000000000..8e37856ab --- /dev/null +++ b/AI/FuzzyLite/FuzzyLite.cbp @@ -0,0 +1,129 @@ + + + + + + diff --git a/AI/StupidAI/StupidAI.cbp b/AI/StupidAI/StupidAI.cbp new file mode 100644 index 000000000..fe0b8bba2 --- /dev/null +++ b/AI/StupidAI/StupidAI.cbp @@ -0,0 +1,70 @@ + + + + + + diff --git a/AI/VCAI/VCAI.cbp b/AI/VCAI/VCAI.cbp new file mode 100644 index 000000000..e74ee4388 --- /dev/null +++ b/AI/VCAI/VCAI.cbp @@ -0,0 +1,80 @@ + + + + + + diff --git a/Scripting/ERM/ERM.cbp b/Scripting/ERM/ERM.cbp new file mode 100644 index 000000000..ade7a74aa --- /dev/null +++ b/Scripting/ERM/ERM.cbp @@ -0,0 +1,84 @@ + + + + + + diff --git a/VCMI_client.cbp b/VCMI_client.cbp new file mode 100644 index 000000000..c0aa9b38a --- /dev/null +++ b/VCMI_client.cbp @@ -0,0 +1,167 @@ + + + + + + diff --git a/VCMI_lib.cbp b/VCMI_lib.cbp new file mode 100644 index 000000000..4a2da5ea6 --- /dev/null +++ b/VCMI_lib.cbp @@ -0,0 +1,180 @@ + + + + + + diff --git a/VCMI_server.cbp b/VCMI_server.cbp new file mode 100644 index 000000000..deb5d9d12 --- /dev/null +++ b/VCMI_server.cbp @@ -0,0 +1,98 @@ + + + + + + diff --git a/vcmi.workspace b/vcmi.workspace new file mode 100644 index 000000000..c24ed5a4a --- /dev/null +++ b/vcmi.workspace @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + +