diff --git a/Pop Engine.sln b/Pop Engine.sln new file mode 100644 index 0000000..fb480f8 --- /dev/null +++ b/Pop Engine.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29009.5 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Pop Engine", "Pop Engine\Pop Engine.vcxproj", "{05AD07D0-B1E3-4852-9D3C-A8273B29423B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Debug|x64.ActiveCfg = Debug|x64 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Debug|x64.Build.0 = Debug|x64 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Debug|x86.ActiveCfg = Debug|Win32 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Debug|x86.Build.0 = Debug|Win32 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Release|x64.ActiveCfg = Release|x64 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Release|x64.Build.0 = Release|x64 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Release|x86.ActiveCfg = Release|Win32 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {841D9ED1-BBBB-41E2-ADCE-EE38756C241D} + EndGlobalSection +EndGlobal diff --git a/Pop Engine/Career.cpp b/Pop Engine/Career.cpp new file mode 100644 index 0000000..47455ff --- /dev/null +++ b/Pop Engine/Career.cpp @@ -0,0 +1 @@ +#include "Career.h" diff --git a/Pop Engine/Career.h b/Pop Engine/Career.h new file mode 100644 index 0000000..c045f96 --- /dev/null +++ b/Pop Engine/Career.h @@ -0,0 +1,19 @@ +#pragma once + +#include + +#include "Production.h" +#include "Need.h" + +using namespace std; + +class Career +{ +public: + +private: + shared_ptr pdt; + shared_ptr ned; + +}; + diff --git a/Pop Engine/Engine.cpp b/Pop Engine/Engine.cpp new file mode 100644 index 0000000..8fdf254 --- /dev/null +++ b/Pop Engine/Engine.cpp @@ -0,0 +1 @@ +#include "Engine.h" diff --git a/Pop Engine/Engine.h b/Pop Engine/Engine.h new file mode 100644 index 0000000..997c169 --- /dev/null +++ b/Pop Engine/Engine.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include + +#include "Market.h" + +using namespace std; + +class Engine +{ +public: + +private: + vector> mkts; +}; + diff --git a/Pop Engine/Market.cpp b/Pop Engine/Market.cpp new file mode 100644 index 0000000..10d2cdd --- /dev/null +++ b/Pop Engine/Market.cpp @@ -0,0 +1 @@ +#include "Market.h" diff --git a/Pop Engine/Market.h b/Pop Engine/Market.h new file mode 100644 index 0000000..67dd0ae --- /dev/null +++ b/Pop Engine/Market.h @@ -0,0 +1,21 @@ +#pragma once + +#include +#include + +#include "Population.h" +#include "SellProduction.h" + +using namespace std; + +class Market +{ +public: + +private: + vector> sl_pdts; + vector> pops; + vector> sub_mkts; + shared_ptr pae_mkts; +}; + diff --git a/Pop Engine/Need.cpp b/Pop Engine/Need.cpp new file mode 100644 index 0000000..7cad2f6 --- /dev/null +++ b/Pop Engine/Need.cpp @@ -0,0 +1 @@ +#include "Need.h" diff --git a/Pop Engine/Need.h b/Pop Engine/Need.h new file mode 100644 index 0000000..f8b2b66 --- /dev/null +++ b/Pop Engine/Need.h @@ -0,0 +1,19 @@ +#pragma once + +#include +#include + +#include "Production.h" + +using namespace std; + +class Need +{ +public: + +private: + vector> base_pdts; + vector> improve_pdts; + vector> high_pdts; +}; + diff --git a/Pop Engine/Pop Engine.cpp b/Pop Engine/Pop Engine.cpp new file mode 100644 index 0000000..6f56c46 --- /dev/null +++ b/Pop Engine/Pop Engine.cpp @@ -0,0 +1,20 @@ +// Pop Engine.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 +// + +#include + +int main() +{ + std::cout << "Hello World!\n"; +} + +// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 +// 调试程序: F5 或调试 >“开始调试”菜单 + +// 入门使用技巧: +// 1. 使用解决方案资源管理器窗口添加/管理文件 +// 2. 使用团队资源管理器窗口连接到源代码管理 +// 3. 使用输出窗口查看生成输出和其他消息 +// 4. 使用错误列表窗口查看错误 +// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 +// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件 diff --git a/Pop Engine/Pop Engine.vcxproj b/Pop Engine/Pop Engine.vcxproj new file mode 100644 index 0000000..52a3290 --- /dev/null +++ b/Pop Engine/Pop Engine.vcxproj @@ -0,0 +1,175 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + {05AD07D0-B1E3-4852-9D3C-A8273B29423B} + Win32Proj + PopEngine + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + + + Level3 + Disabled + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + Disabled + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + Level3 + MaxSpeed + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pop Engine/Pop Engine.vcxproj.filters b/Pop Engine/Pop Engine.vcxproj.filters new file mode 100644 index 0000000..a2c5fa2 --- /dev/null +++ b/Pop Engine/Pop Engine.vcxproj.filters @@ -0,0 +1,66 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + 源文件 + + + + + 头文件 + + + 头文件 + + + 头文件 + + + 头文件 + + + 头文件 + + + 头文件 + + + 头文件 + + + \ No newline at end of file diff --git a/Pop Engine/Population.cpp b/Pop Engine/Population.cpp new file mode 100644 index 0000000..437c3aa --- /dev/null +++ b/Pop Engine/Population.cpp @@ -0,0 +1 @@ +#include "Population.h" diff --git a/Pop Engine/Population.h b/Pop Engine/Population.h new file mode 100644 index 0000000..90a04d1 --- /dev/null +++ b/Pop Engine/Population.h @@ -0,0 +1,27 @@ +#pragma once + +#include + +#include "Career.h" +#include "Market.h" + +using namespace std; + +class Population +{ +public: + void work(void); + void sell(void); + void tax(void); + void buy(void); + void move(void); + void increase(void); + +private: + shared_ptr career; + shared_ptr market; + + float pop; + float money; + +}; \ No newline at end of file diff --git a/Pop Engine/Production.cpp b/Pop Engine/Production.cpp new file mode 100644 index 0000000..6b6addf --- /dev/null +++ b/Pop Engine/Production.cpp @@ -0,0 +1 @@ +#include "Production.h" diff --git a/Pop Engine/Production.h b/Pop Engine/Production.h new file mode 100644 index 0000000..bc12a30 --- /dev/null +++ b/Pop Engine/Production.h @@ -0,0 +1,18 @@ +#pragma once + +#include +#include +#include + +using namespace std; + +class Production +{ +public: + +private: + vector> material; + float value; + string name; +}; + diff --git a/Pop Engine/SellProduction.cpp b/Pop Engine/SellProduction.cpp new file mode 100644 index 0000000..62da52b --- /dev/null +++ b/Pop Engine/SellProduction.cpp @@ -0,0 +1 @@ +#include "SellProduction.h" diff --git a/Pop Engine/SellProduction.h b/Pop Engine/SellProduction.h new file mode 100644 index 0000000..8bbba2d --- /dev/null +++ b/Pop Engine/SellProduction.h @@ -0,0 +1,14 @@ +#pragma once +#include "Production.h" +class SellProduction : + public Production +{ +public: + +private: + float num; + float price; + float need; + shared_ptr type; +}; +