From ce19c7632493514c6a19b2eac2e9a75e835a852b Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Mon, 2 Feb 2015 11:40:06 +0300 Subject: [PATCH] Added draft of new file structure --- lib/CMakeLists.txt | 4 ++++ lib/VCMI_lib.vcxproj | 4 ++++ lib/spells/AdventureSpellMechanics.cpp | 13 +++++++++++++ lib/spells/AdventureSpellMechanics.h | 13 +++++++++++++ lib/spells/BattleSpellMechanics.cpp | 13 +++++++++++++ lib/spells/BattleSpellMechanics.h | 13 +++++++++++++ lib/spells/CDefaultSpellMechanics.cpp | 13 +++++++++++++ lib/spells/CDefaultSpellMechanics.h | 13 +++++++++++++ lib/spells/CreatureSpellMechanics.cpp | 13 +++++++++++++ lib/spells/CreatureSpellMechanics.h | 13 +++++++++++++ 10 files changed, 112 insertions(+) create mode 100644 lib/spells/AdventureSpellMechanics.cpp create mode 100644 lib/spells/AdventureSpellMechanics.h create mode 100644 lib/spells/BattleSpellMechanics.cpp create mode 100644 lib/spells/BattleSpellMechanics.h create mode 100644 lib/spells/CDefaultSpellMechanics.cpp create mode 100644 lib/spells/CDefaultSpellMechanics.h create mode 100644 lib/spells/CreatureSpellMechanics.cpp create mode 100644 lib/spells/CreatureSpellMechanics.h diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 95962b01c..d6e3c4dbf 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -56,6 +56,10 @@ set(lib_SRCS spells/CSpellHandler.cpp spells/ISpellMechanics.cpp + spells/AdventureSpellMechanics.cpp + spells/BattleSpellMechanics.cpp + spells/CreatureSpellMechanics.cpp + spells/CDefaultSpellMechanics.cpp BattleAction.cpp BattleHex.cpp diff --git a/lib/VCMI_lib.vcxproj b/lib/VCMI_lib.vcxproj index 2cd37f7c3..feef22cc9 100644 --- a/lib/VCMI_lib.vcxproj +++ b/lib/VCMI_lib.vcxproj @@ -189,6 +189,10 @@ + + + + diff --git a/lib/spells/AdventureSpellMechanics.cpp b/lib/spells/AdventureSpellMechanics.cpp new file mode 100644 index 000000000..e1a84d1ab --- /dev/null +++ b/lib/spells/AdventureSpellMechanics.cpp @@ -0,0 +1,13 @@ +/* + * AdventureSpellMechanics.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + +#include "StdInc.h" + +#include "AdventureSpellMechanics.h" diff --git a/lib/spells/AdventureSpellMechanics.h b/lib/spells/AdventureSpellMechanics.h new file mode 100644 index 000000000..747aefed8 --- /dev/null +++ b/lib/spells/AdventureSpellMechanics.h @@ -0,0 +1,13 @@ +/* + * AdventureSpellMechanics.h, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + + #pragma once + + #include "CDefaultSpellMechanics.h" diff --git a/lib/spells/BattleSpellMechanics.cpp b/lib/spells/BattleSpellMechanics.cpp new file mode 100644 index 000000000..2bd07e5fb --- /dev/null +++ b/lib/spells/BattleSpellMechanics.cpp @@ -0,0 +1,13 @@ +/* + * BattleSpellMechanics.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + +#include "StdInc.h" + +#include "BattleSpellMechanics.h" diff --git a/lib/spells/BattleSpellMechanics.h b/lib/spells/BattleSpellMechanics.h new file mode 100644 index 000000000..9057d6985 --- /dev/null +++ b/lib/spells/BattleSpellMechanics.h @@ -0,0 +1,13 @@ +/* + * BattleSpellMechanics.h, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + + #pragma once + + #include "CDefaultSpellMechanics.h" diff --git a/lib/spells/CDefaultSpellMechanics.cpp b/lib/spells/CDefaultSpellMechanics.cpp new file mode 100644 index 000000000..d4bcd8d2b --- /dev/null +++ b/lib/spells/CDefaultSpellMechanics.cpp @@ -0,0 +1,13 @@ +/* + * CDefaultSpellMechanics.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + +#include "StdInc.h" + +#include "CDefaultSpellMechanics.h" diff --git a/lib/spells/CDefaultSpellMechanics.h b/lib/spells/CDefaultSpellMechanics.h new file mode 100644 index 000000000..76a2a20cb --- /dev/null +++ b/lib/spells/CDefaultSpellMechanics.h @@ -0,0 +1,13 @@ +/* + * CDefaultSpellMechanics.h, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + +#pragma once + +#include "ISpellMechanics.h" diff --git a/lib/spells/CreatureSpellMechanics.cpp b/lib/spells/CreatureSpellMechanics.cpp new file mode 100644 index 000000000..560a14ba8 --- /dev/null +++ b/lib/spells/CreatureSpellMechanics.cpp @@ -0,0 +1,13 @@ +/* + * CreatureSpellMechanics.cpp, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + +#include "StdInc.h" + +#include "CreatureSpellMechanics.h" diff --git a/lib/spells/CreatureSpellMechanics.h b/lib/spells/CreatureSpellMechanics.h new file mode 100644 index 000000000..845e35f59 --- /dev/null +++ b/lib/spells/CreatureSpellMechanics.h @@ -0,0 +1,13 @@ +/* + * CreatureSpellMechanics.h, part of VCMI engine + * + * Authors: listed in file AUTHORS in main folder + * + * License: GNU General Public License v2.0 or later + * Full text of license available in license.txt file, in main folder + * + */ + + #pragma once + + #include "CDefaultSpellMechanics.h"