Fix: include guards, licenses, StdInc
@@ -1,2 +1,11 @@
+/*
+ * StdInc.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
+ */
// Creates the precompiled header
#include "StdInc.h"
@@ -1,3 +1,12 @@
+ * StdInc.h, part of VCMI engine
#pragma once
#include "../../Global.h"
@@ -1,6 +1,3 @@
-namespace Nullkiller
-{
-
/*
* Build.cpp, part of VCMI engine
*
@@ -23,6 +20,8 @@ namespace Nullkiller
#include "../../../lib/CPathfinder.h"
#include "../../../lib/StringConstants.h"
+namespace Nullkiller
+{
extern boost::thread_specific_ptr<CCallback> cb;
extern boost::thread_specific_ptr<AIGateway> ai;
* Build.h, part of VCMI engine
@@ -14,6 +11,9 @@ namespace Nullkiller
#include "CGoal.h"
+
struct HeroPtr;
class AIGateway;
class FuzzyHelper;
* GatherArmy.cpp, part of VCMI engine
@@ -22,6 +19,8 @@ namespace Nullkiller
* GatherArmy.h, part of VCMI engine
@@ -1 +1,10 @@
VCMI_LIB_USING_NAMESPACE
@@ -1,5 +1,5 @@
-* AIhelper.h, part of VCMI engine
+* AIhelper.cpp, part of VCMI engine
* Authors: listed in file AUTHORS in main folder
+ * MapObjectsEvaluator.cpp, part of VCMI engine
#include "MapObjectsEvaluator.h"
#include "../../lib/GameConstants.h"
@@ -7,9 +7,9 @@
* Full text of license available in license.txt file, in main folder
*/
+#include "StdInc.h"
#include "CFocusableHelper.h"
#include "../Global.h"
-#include "StdInc.h"
#include "widgets/TextControls.h"
void removeFocusFromActiveInput()
@@ -7,5 +7,6 @@
+#pragma once
void removeFocusFromActiveInput();
@@ -7,8 +7,8 @@
-#include "Global.h"
+#include "Global.h"
#include "Client.h"
#include "CGameInfo.h"
- * FramerateManager.h, part of VCMI engine
+ * FramerateManager.cpp, part of VCMI engine
@@ -7,6 +7,7 @@
#import <UIKit/UIKit.h>
-#import "startSDL.h"
+#import "startSDL.h"
#import "GameChatKeyboardHandler.h"
- * ICursor.h, part of VCMI engine
+ * Colors.h, part of VCMI engine
@@ -7,10 +7,10 @@
- #pragma once
- #include "../windows/CWindowObject.h"
- #include "CWindowWithArtifacts.h"
+#include "../windows/CWindowObject.h"
+#include "CWindowWithArtifacts.h"
class CCallback;
@@ -9,18 +9,10 @@
#include <QVariantMap>
#include <QVariant>
#include <QVector>
-VCMI_LIB_NAMESPACE_BEGIN
-class JsonNode;
-VCMI_LIB_NAMESPACE_END
namespace ModStatus
{
enum EModStatus
@@ -7,8 +7,7 @@
-#ifndef IMAGEVIEWER_H
-#define IMAGEVIEWER_H
#include <QDialog>
@@ -38,5 +37,3 @@ protected:
private:
Ui::ImageViewer * ui;
};
-#endif // IMAGEVIEWER_H
- * CBattleInfoCallback.h, part of VCMI engine
+ * PossiblePlayerBattleAction.h, part of VCMI engine
#include "../GameConstants.h"
@@ -1,4 +1,3 @@
* IBonusBearer.h, part of VCMI engine
- * CModVersion.h, part of VCMI engine
+ * CModVersion.cpp, part of VCMI engine
#include "ProxyCaster.h"
#include "../battle/BattleHex.h"
@@ -8,10 +8,10 @@
- #include "../int3.h"
- #include "../GameConstants.h"
+#include "../int3.h"
+#include "../GameConstants.h"
VCMI_LIB_NAMESPACE_BEGIN
+ * DateUtils.cpp, part of VCMI engine
#include <vstd/DateUtils.h>
+ * StringUtils.cpp, part of VCMI engine
#include <vstd/StringUtils.h>
-#include <QApplication>
+#include <QApplication>
#include "mainwindow.h"
int main(int argc, char * argv[])
- * victoryconditions.h, part of VCMI engine
+ * victoryconditions.cpp, part of VCMI engine
#include "../lib/spells/ISpellMechanics.h"
@@ -7,12 +7,12 @@
#include "../../../lib/mapping/CMap.h"
#include "../../../lib/rmg/CMapGenOptions.h"
#include "../../../lib/rmg/CMapGenerator.h"
-#pragma once
class ZoneOptionsFake : public rmg::ZoneOptions
public:
@@ -9,8 +9,6 @@
#include "TargetConditionItemFixture.h"
namespace test
+ * mock_ResourceManager.cpp, part of VCMI engine
#include "mock_ResourceManager.h"
+ * mock_ResourceManager.h, part of VCMI engine
#include "gtest/gtest.h"