1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

C::B project files initial import

+ workspace file (not include ERM and Battle AI)
+ project files
* svn:ignore setup
This commit is contained in:
alexvins 2012-09-15 18:44:55 +00:00
parent a7ff036550
commit 7087be1f02
11 changed files with 974 additions and 5 deletions

69
AI/BattleAI/BattleAI.cbp Normal file
View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="BattleAI" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\BattleAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\BattleAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pedantic" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add directory="$(#boost.include)" />
<Add directory="..\..\include" />
</Compiler>
<Linker>
<Add directory="$(#boost.lib)" />
</Linker>
<Unit filename="BattleAI.cpp" />
<Unit filename="BattleAI.h" />
<Unit filename="StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

69
AI/EmptyAI/EmptyAI.cbp Normal file
View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="EmptyAI" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\EmptyAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-ggdb" />
</Compiler>
<Linker>
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\EmptyAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O3" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-fpermissive" />
<Add directory="$(#boost.include)" />
<Add directory="..\..\include" />
</Compiler>
<Linker>
<Add directory="$(#boost.lib)" />
</Linker>
<Unit filename="CEmptyAI.cpp" />
<Unit filename="CEmptyAI.h" />
<Unit filename="StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="exp_funcs.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -3,27 +3,27 @@
#include "CEmptyAI.h"
std::set<CGlobalAI*> 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);

129
AI/FuzzyLite/FuzzyLite.cbp Normal file
View File

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="FuzzyLite" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\FuzzyLite" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj\Debug\" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\Release\FuzzyLite" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj\Release\" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
</Compiler>
<Unit filename="AreaCentroidAlgorithm.cpp" />
<Unit filename="AreaCentroidAlgorithm.h" />
<Unit filename="CompoundTerm.cpp" />
<Unit filename="CompoundTerm.h" />
<Unit filename="DescriptiveAntecedent.cpp" />
<Unit filename="DescriptiveAntecedent.h" />
<Unit filename="DiscreteTerm.cpp" />
<Unit filename="DiscreteTerm.h" />
<Unit filename="FunctionTerm.cpp" />
<Unit filename="FunctionTerm.h" />
<Unit filename="FuzzyAnd.cpp" />
<Unit filename="FuzzyAnd.h" />
<Unit filename="FuzzyAntecedent.cpp" />
<Unit filename="FuzzyAntecedent.h" />
<Unit filename="FuzzyConsequent.cpp" />
<Unit filename="FuzzyConsequent.h" />
<Unit filename="FuzzyDefuzzifier.cpp" />
<Unit filename="FuzzyDefuzzifier.h" />
<Unit filename="FuzzyEngine.cpp" />
<Unit filename="FuzzyEngine.h" />
<Unit filename="FuzzyException.cpp" />
<Unit filename="FuzzyException.h" />
<Unit filename="FuzzyExceptions.cpp" />
<Unit filename="FuzzyExceptions.h" />
<Unit filename="FuzzyLite.h" />
<Unit filename="FuzzyModulation.cpp" />
<Unit filename="FuzzyModulation.h" />
<Unit filename="FuzzyOperation.cpp" />
<Unit filename="FuzzyOperation.h" />
<Unit filename="FuzzyOperator.cpp" />
<Unit filename="FuzzyOperator.h" />
<Unit filename="FuzzyOr.cpp" />
<Unit filename="FuzzyOr.h" />
<Unit filename="FuzzyRule.cpp" />
<Unit filename="FuzzyRule.h" />
<Unit filename="Hedge.cpp" />
<Unit filename="Hedge.h" />
<Unit filename="HedgeSet.cpp" />
<Unit filename="HedgeSet.h" />
<Unit filename="InfixToPostfix.cpp" />
<Unit filename="InfixToPostfix.h" />
<Unit filename="InputLVar.cpp" />
<Unit filename="InputLVar.h" />
<Unit filename="LinguisticTerm.cpp" />
<Unit filename="LinguisticTerm.h" />
<Unit filename="LinguisticVariable.cpp" />
<Unit filename="LinguisticVariable.h" />
<Unit filename="MamdaniConsequent.cpp" />
<Unit filename="MamdaniConsequent.h" />
<Unit filename="MamdaniRule.cpp" />
<Unit filename="MamdaniRule.h" />
<Unit filename="OutputLVar.cpp" />
<Unit filename="OutputLVar.h" />
<Unit filename="RectangularTerm.cpp" />
<Unit filename="RectangularTerm.h" />
<Unit filename="RuleBlock.cpp" />
<Unit filename="RuleBlock.h" />
<Unit filename="ShoulderTerm.cpp" />
<Unit filename="ShoulderTerm.h" />
<Unit filename="SingletonTerm.cpp" />
<Unit filename="SingletonTerm.h" />
<Unit filename="StrOp.cpp" />
<Unit filename="StrOp.h" />
<Unit filename="TakagiSugenoConsequent.cpp" />
<Unit filename="TakagiSugenoConsequent.h" />
<Unit filename="TakagiSugenoRule.cpp" />
<Unit filename="TakagiSugenoRule.h" />
<Unit filename="TakagiSugenoTerm.cpp" />
<Unit filename="TakagiSugenoTerm.h" />
<Unit filename="TrapezoidalTerm.cpp" />
<Unit filename="TrapezoidalTerm.h" />
<Unit filename="TriangularTerm.cpp" />
<Unit filename="TriangularTerm.h" />
<Unit filename="defs.h" />
<Unit filename="flScalar.h" />
<Unit filename="main.cpp" />
<Unit filename="test.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

70
AI/StupidAI/StupidAI.cbp Normal file
View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="StupidAI" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\StupidAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-ggdb" />
</Compiler>
<Linker>
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\StupidAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O3" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pedantic" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add option="-D_WIN32_WINNT=0x0501" />
<Add directory="$(#boost.include)" />
<Add directory="..\..\include" />
</Compiler>
<Linker>
<Add directory="$(#boost.lib)" />
</Linker>
<Unit filename="StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="StupidAI.cpp" />
<Unit filename="StupidAI.h" />
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

80
AI/VCAI/VCAI.cbp Normal file
View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="VCAI" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\VCAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lboost_thread-mgw47-mt-d-1_51" />
<Add option="-lboost_chrono-mgw47-mt-d-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Debug" />
<Add directory="..\FuzzyLite\bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\VCAI" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O3" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lboost_thread-mgw47-mt-1_51" />
<Add option="-lboost_chrono-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="..\..\bin\Release" />
<Add directory="..\FuzzyLite\bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pedantic" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add option="-D_WIN32_WINNT=0x0501" />
<Add directory="$(#boost.include)" />
<Add directory="..\..\include" />
</Compiler>
<Linker>
<Add option="-lFuzzyLite" />
<Add directory="$(#boost.lib)" />
</Linker>
<Unit filename="Fuzzy.cpp" />
<Unit filename="Fuzzy.h" />
<Unit filename="StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="VCAI.cpp" />
<Unit filename="VCAI.h" />
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

84
Scripting/ERM/ERM.cbp Normal file
View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="ERM" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\ERM" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-ggdb" />
</Compiler>
<Linker>
<Add directory="..\..\bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\ERM" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O3" />
</Compiler>
<Linker>
<Add option="-s" />
<Add directory="..\..\bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-O1" />
<Add option="-O" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
</Compiler>
<Linker>
<Add option="-lboost_program_options-mgw47-mt-1_51" />
<Add option="-lboost_filesystem-mgw47-mt-1_51" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lboost_thread-mgw47-mt-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-1_51" />
<Add option="-lboost_chrono-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
</Linker>
<Unit filename="ERMInterpreter.cpp" />
<Unit filename="ERMInterpreter.h" />
<Unit filename="ERMParser.cpp" />
<Unit filename="ERMParser.h" />
<Unit filename="ERMScriptModule.cpp" />
<Unit filename="ERMScriptModule.h" />
<Unit filename="StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
<DoxyBlocks>
<comment_style block="0" line="0" />
<doxyfile_project />
<doxyfile_build />
<doxyfile_warnings />
<doxyfile_output />
<doxyfile_dot />
<general />
</DoxyBlocks>
</Extensions>
</Project>
</CodeBlocks_project_file>

167
VCMI_client.cbp Normal file
View File

@ -0,0 +1,167 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="VCMI_client" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\VCMI_client" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add directory="bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\VCMI_client" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add directory="bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-fpermissive" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add option="-D_WIN32_WINNT=0x0501" />
<Add directory="$(#boost.include)" />
<Add directory="$(#sdl.include)" />
<Add directory="." />
<Add directory="client" />
<Add directory="include" />
</Compiler>
<Linker>
<Add option="-lole32" />
<Add option="-loleaut32" />
<Add option="-lws2_32" />
<Add option="-lboost_program_options-mgw47-mt-1_51" />
<Add option="-lboost_filesystem-mgw47-mt-1_51" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lboost_thread-mgw47-mt-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-1_51" />
<Add option="-lboost_chrono-mgw47-mt-1_51" />
<Add option="-lSDL" />
<Add option="-lSDL_image" />
<Add option="-lSDL_mixer" />
<Add option="-lSDL_ttf" />
<Add option="-lVCMI_lib" />
<Add directory="$(#boost.lib)" />
<Add directory="$(#sdl.lib)" />
</Linker>
<Unit filename="CCallback.cpp" />
<Unit filename="CCallback.h" />
<Unit filename="client\AdventureMapClasses.cpp" />
<Unit filename="client\AdventureMapClasses.h" />
<Unit filename="client\BattleInterface\CBattleAnimations.cpp" />
<Unit filename="client\BattleInterface\CBattleAnimations.h" />
<Unit filename="client\BattleInterface\CBattleInterface.cpp" />
<Unit filename="client\BattleInterface\CBattleInterface.h" />
<Unit filename="client\BattleInterface\CBattleInterfaceClasses.cpp" />
<Unit filename="client\BattleInterface\CBattleInterfaceClasses.h" />
<Unit filename="client\BattleInterface\CCreatureAnimation.cpp" />
<Unit filename="client\BattleInterface\CCreatureAnimation.h" />
<Unit filename="client\CAdvmapInterface.cpp" />
<Unit filename="client\CAdvmapInterface.h" />
<Unit filename="client\CAnimation.cpp" />
<Unit filename="client\CAnimation.h" />
<Unit filename="client\CBitmapHandler.cpp" />
<Unit filename="client\CBitmapHandler.h" />
<Unit filename="client\CCastleInterface.cpp" />
<Unit filename="client\CCastleInterface.h" />
<Unit filename="client\CConfigHandler.cpp" />
<Unit filename="client\CConfigHandler.h" />
<Unit filename="client\CCreatureWindow.cpp" />
<Unit filename="client\CCreatureWindow.h" />
<Unit filename="client\CDefHandler.cpp" />
<Unit filename="client\CDefHandler.h" />
<Unit filename="client\CGameInfo.cpp" />
<Unit filename="client\CGameInfo.h" />
<Unit filename="client\CHeroWindow.cpp" />
<Unit filename="client\CHeroWindow.h" />
<Unit filename="client\CKingdomInterface.cpp" />
<Unit filename="client\CKingdomInterface.h" />
<Unit filename="client\CMT.cpp" />
<Unit filename="client\CMessage.cpp" />
<Unit filename="client\CMessage.h" />
<Unit filename="client\CMusicHandler.cpp" />
<Unit filename="client\CMusicHandler.h" />
<Unit filename="client\CPlayerInterface.cpp" />
<Unit filename="client\CPlayerInterface.h" />
<Unit filename="client\CPreGame.cpp" />
<Unit filename="client\CPreGame.h" />
<Unit filename="client\CQuestLog.cpp" />
<Unit filename="client\CQuestLog.h" />
<Unit filename="client\CSoundBase.h" />
<Unit filename="client\CSpellWindow.cpp" />
<Unit filename="client\CSpellWindow.h" />
<Unit filename="client\CVideoHandler.cpp" />
<Unit filename="client\CVideoHandler.h" />
<Unit filename="client\Client.cpp" />
<Unit filename="client\Client.h" />
<Unit filename="client\FontBase.h" />
<Unit filename="client\FunctionList.h" />
<Unit filename="client\GUIClasses.cpp" />
<Unit filename="client\GUIClasses.h" />
<Unit filename="client\Graphics.cpp" />
<Unit filename="client\Graphics.h" />
<Unit filename="client\NetPacksClient.cpp" />
<Unit filename="client\StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="client\UIFramework\CCursorHandler.cpp" />
<Unit filename="client\UIFramework\CCursorHandler.h" />
<Unit filename="client\UIFramework\CGuiHandler.cpp" />
<Unit filename="client\UIFramework\CGuiHandler.h" />
<Unit filename="client\UIFramework\CIntObject.cpp" />
<Unit filename="client\UIFramework\CIntObject.h" />
<Unit filename="client\UIFramework\CIntObjectClasses.cpp" />
<Unit filename="client\UIFramework\CIntObjectClasses.h" />
<Unit filename="client\UIFramework\Geometries.cpp" />
<Unit filename="client\UIFramework\Geometries.h" />
<Unit filename="client\UIFramework\SDL_Extensions.cpp" />
<Unit filename="client\UIFramework\SDL_Extensions.h" />
<Unit filename="client\UIFramework\SDL_Pixels.h" />
<Unit filename="client\VCMI_client.rc">
<Option compilerVar="WINDRES" />
</Unit>
<Unit filename="client\mapHandler.cpp" />
<Unit filename="client\mapHandler.h" />
<Unit filename="client\resource.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
<DoxyBlocks>
<comment_style block="0" line="0" />
<doxyfile_project />
<doxyfile_build />
<doxyfile_warnings />
<doxyfile_output />
<doxyfile_dot />
<general />
</DoxyBlocks>
</Extensions>
</Project>
</CodeBlocks_project_file>

180
VCMI_lib.cbp Normal file
View File

@ -0,0 +1,180 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="VCMI_lib" />
<Option execution_dir="D:\projects\vcmi\engine\VCMI_lib\" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option platforms="Windows;" />
<Option output="bin\Debug\VCMI_lib" prefix_auto="0" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O1" />
<Add option="-O" />
</Compiler>
<Linker>
<Add option="-lboost_filesystem-mgw47-mt-d-1_51" />
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lboost_thread-mgw47-mt-d-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-d-1_51" />
<Add option="-lboost_chrono-mgw47-mt-d-1_51" />
</Linker>
</Target>
<Target title="Release">
<Option platforms="Windows;" />
<Option output="bin\Release\VCMI_lib" prefix_auto="0" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_filesystem-mgw47-mt-1_51" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lboost_thread-mgw47-mt-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-1_51" />
<Add option="-lboost_chrono-mgw47-mt-1_51" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pedantic" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-DVCMI_DLL" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add option="-D_WIN32_WINNT=0x0501" />
<Add directory="$(#boost.include)" />
<Add directory="$(#sdl.include)" />
<Add directory="." />
<Add directory="include" />
<Add directory="lib" />
</Compiler>
<Linker>
<Add option="-lws2_32" />
<Add library="$(#mingw.lib)\libz.dll.a" />
<Add directory="$(#boost.lib)" />
<Add directory="$(#sdl.lib)" />
</Linker>
<Unit filename="Global.h" />
<Unit filename="lib\AI_Base.h" />
<Unit filename="lib\BattleAction.cpp" />
<Unit filename="lib\BattleAction.h" />
<Unit filename="lib\BattleHex.cpp" />
<Unit filename="lib\BattleHex.h" />
<Unit filename="lib\BattleState.cpp" />
<Unit filename="lib\BattleState.h" />
<Unit filename="lib\CArtHandler.cpp" />
<Unit filename="lib\CArtHandler.h" />
<Unit filename="lib\CBattleCallback.cpp" />
<Unit filename="lib\CBattleCallback.h" />
<Unit filename="lib\CBuildingHandler.cpp" />
<Unit filename="lib\CBuildingHandler.h" />
<Unit filename="lib\CCampaignHandler.cpp" />
<Unit filename="lib\CCampaignHandler.h" />
<Unit filename="lib\CConsoleHandler.cpp" />
<Unit filename="lib\CConsoleHandler.h" />
<Unit filename="lib\CCreatureHandler.cpp" />
<Unit filename="lib\CCreatureHandler.h" />
<Unit filename="lib\CCreatureSet.cpp" />
<Unit filename="lib\CCreatureSet.h" />
<Unit filename="lib\CDefObjInfoHandler.cpp" />
<Unit filename="lib\CDefObjInfoHandler.h" />
<Unit filename="lib\CGameInterface.cpp" />
<Unit filename="lib\CGameInterface.h" />
<Unit filename="lib\CGameState.cpp" />
<Unit filename="lib\CGameState.h" />
<Unit filename="lib\CGeneralTextHandler.cpp" />
<Unit filename="lib\CGeneralTextHandler.h" />
<Unit filename="lib\CHeroHandler.cpp" />
<Unit filename="lib\CHeroHandler.h" />
<Unit filename="lib\CLogger.cpp" />
<Unit filename="lib\CLogger.h" />
<Unit filename="lib\CMapInfo.cpp" />
<Unit filename="lib\CMapInfo.h" />
<Unit filename="lib\CModHandler.cpp" />
<Unit filename="lib\CModHandler.h" />
<Unit filename="lib\CObjectHandler.cpp" />
<Unit filename="lib\CObjectHandler.h" />
<Unit filename="lib\CObstacleInstance.cpp" />
<Unit filename="lib\CObstacleInstance.h" />
<Unit filename="lib\CScriptingModule.h" />
<Unit filename="lib\CSpellHandler.cpp" />
<Unit filename="lib\CSpellHandler.h" />
<Unit filename="lib\CStopWatch.h" />
<Unit filename="lib\CThreadHelper.cpp" />
<Unit filename="lib\CThreadHelper.h" />
<Unit filename="lib\CTownHandler.cpp" />
<Unit filename="lib\CTownHandler.h" />
<Unit filename="lib\CondSh.h" />
<Unit filename="lib\Connection.cpp" />
<Unit filename="lib\Connection.h" />
<Unit filename="lib\ConstTransitivePtr.h" />
<Unit filename="lib\Filesystem\CBinaryReader.cpp" />
<Unit filename="lib\Filesystem\CBinaryReader.h" />
<Unit filename="lib\Filesystem\CCompressedStream.cpp" />
<Unit filename="lib\Filesystem\CCompressedStream.h" />
<Unit filename="lib\Filesystem\CFileInfo.cpp" />
<Unit filename="lib\Filesystem\CFileInfo.h" />
<Unit filename="lib\Filesystem\CFileInputStream.cpp" />
<Unit filename="lib\Filesystem\CFileInputStream.h" />
<Unit filename="lib\Filesystem\CFilesystemLoader.cpp" />
<Unit filename="lib\Filesystem\CFilesystemLoader.h" />
<Unit filename="lib\Filesystem\CInputStream.h" />
<Unit filename="lib\Filesystem\CLodArchiveLoader.cpp" />
<Unit filename="lib\Filesystem\CLodArchiveLoader.h" />
<Unit filename="lib\Filesystem\CMemoryStream.cpp" />
<Unit filename="lib\Filesystem\CMemoryStream.h" />
<Unit filename="lib\Filesystem\CResourceLoader.cpp" />
<Unit filename="lib\Filesystem\CResourceLoader.h" />
<Unit filename="lib\Filesystem\ISimpleResourceLoader.h" />
<Unit filename="lib\GameConstants.h" />
<Unit filename="lib\HeroBonus.cpp" />
<Unit filename="lib\HeroBonus.h" />
<Unit filename="lib\IGameCallback.cpp" />
<Unit filename="lib\IGameCallback.h" />
<Unit filename="lib\IGameEventsReceiver.h" />
<Unit filename="lib\Interprocess.h" />
<Unit filename="lib\JsonNode.cpp" />
<Unit filename="lib\JsonNode.h" />
<Unit filename="lib\NetPacks.h" />
<Unit filename="lib\NetPacksLib.cpp" />
<Unit filename="lib\RegisterTypes.h" />
<Unit filename="lib\ResourceSet.cpp" />
<Unit filename="lib\ResourceSet.h" />
<Unit filename="lib\StartInfo.h" />
<Unit filename="lib\StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Unit filename="lib\UnlockGuard.h" />
<Unit filename="lib\VCMIDirs.h" />
<Unit filename="lib\VCMI_Lib.cpp" />
<Unit filename="lib\VCMI_Lib.h" />
<Unit filename="lib\int3.h" />
<Unit filename="lib\map.cpp" />
<Unit filename="lib\map.h" />
<Unit filename="lib\vcmi_endian.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

98
VCMI_server.cbp Normal file
View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="VCMI_server" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\VCMI_server" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Option use_console_runner="0" />
<Compiler>
<Add option="-ggdb" />
</Compiler>
<Linker>
<Add option="-lboost_program_options-mgw47-mt-d-1_51" />
<Add option="-lboost_filesystem-mgw47-mt-d-1_51" />
<Add option="-lboost_system-mgw47-mt-d-1_51" />
<Add option="-lboost_thread-mgw47-mt-d-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-d-1_51" />
<Add option="-lboost_chrono-mgw47-mt-d-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="bin\Debug" />
</Linker>
</Target>
<Target title="Release">
<Option output="bin\Release\VCMI_server" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fomit-frame-pointer" />
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add option="-lboost_program_options-mgw47-mt-1_51" />
<Add option="-lboost_filesystem-mgw47-mt-1_51" />
<Add option="-lboost_system-mgw47-mt-1_51" />
<Add option="-lboost_thread-mgw47-mt-1_51" />
<Add option="-lboost_iostreams-mgw47-mt-1_51" />
<Add option="-lboost_chrono-mgw47-mt-1_51" />
<Add option="-lVCMI_lib" />
<Add directory="bin\Release" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-Wpointer-arith" />
<Add option="-Wno-switch" />
<Add option="-Wno-sign-compare" />
<Add option="-Wno-unused-parameter" />
<Add option="-Wno-overloaded-virtual" />
<Add option="-D_WIN32_WINNT=0x0501" />
<Add option="-DBOOST_THREAD_USE_LIB" />
<Add directory="$(#boost.include)" />
<Add directory="$(#sdl.include)" />
<Add directory="." />
<Add directory="include" />
</Compiler>
<Linker>
<Add option="-lole32" />
<Add option="-loleaut32" />
<Add option="-lws2_32" />
<Add option="-lmswsock" />
<Add directory="$(#boost.lib)" />
</Linker>
<Unit filename="server\CGameHandler.cpp" />
<Unit filename="server\CGameHandler.h" />
<Unit filename="server\CVCMIServer.cpp" />
<Unit filename="server\CVCMIServer.h" />
<Unit filename="server\NetPacksServer.cpp" />
<Unit filename="server\StdInc.h">
<Option compile="1" />
<Option weight="0" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
<DoxyBlocks>
<comment_style block="0" line="0" />
<doxyfile_project />
<doxyfile_build />
<doxyfile_warnings />
<doxyfile_output />
<doxyfile_dot />
<general />
</DoxyBlocks>
</Extensions>
</Project>
</CodeBlocks_project_file>

23
vcmi.workspace Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="vcmi">
<Project filename="VCMI_lib.cbp" />
<Project filename="VCMI_client.cbp">
<Depends filename="VCMI_lib.cbp" />
</Project>
<Project filename="VCMI_server.cbp">
<Depends filename="VCMI_lib.cbp" />
</Project>
<Project filename="AI/FuzzyLite/FuzzyLite.cbp" />
<Project filename="AI/EmptyAI/EmptyAI.cbp">
<Depends filename="VCMI_lib.cbp" />
</Project>
<Project filename="AI/VCAI/VCAI.cbp">
<Depends filename="VCMI_lib.cbp" />
<Depends filename="AI/FuzzyLite/FuzzyLite.cbp" />
</Project>
<Project filename="AI/StupidAI/StupidAI.cbp">
<Depends filename="VCMI_lib.cbp" />
</Project>
</Workspace>
</CodeBlocks_workspace_file>