1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Code polishing

This commit is contained in:
nordsoft 2022-10-13 01:51:55 +04:00
parent d7de9accee
commit b4a806d7fa
26 changed files with 215 additions and 2 deletions

View File

@ -7,6 +7,9 @@
* Full text of license available in license.txt file, in main folder
*
*/
//code is copied from vcmiclient/CAnimation.cpp with minimal changes
#include "StdInc.h"
#include "Animation.h"

View File

@ -8,6 +8,7 @@
*
*/
#pragma once
//code is copied from vcmiclient/CAnimation.h with minimal changes
#include "../lib/JsonNode.h"
#include "../lib/GameConstants.h"

View File

@ -7,6 +7,9 @@
* Full text of license available in license.txt file, in main folder
*
*/
//code is copied from vcmiclient/CBitmapHandler.cpp with minimal changes
#include "StdInc.h"
#include "BitmapHandler.h"

View File

@ -8,6 +8,7 @@
*
*/
#pragma once
//code is copied from vcmiclient/CBitmapHandler.h with minimal changes
#define read_le_u16(p) (* reinterpret_cast<const ui16 *>(p))
#define read_le_u32(p) (* reinterpret_cast<const ui32 *>(p))

View File

@ -1,5 +1,5 @@
/*
* Graphics.cpp, part of VCMI engine
* graphics.cpp, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
@ -7,6 +7,8 @@
* Full text of license available in license.txt file, in main folder
*
*/
//code is copied from vcmiclient/Graphics.cpp with minimal changes
#include "StdInc.h"
#include "graphics.h"

View File

@ -1,5 +1,5 @@
/*
* Graphics.h, part of VCMI engine
* graphics.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
@ -8,6 +8,7 @@
*
*/
#pragma once
//code is copied from vcmiclient/Graphics.h with minimal changes
#include "../lib/GameConstants.h"
#include <QImage>

View File

@ -1,3 +1,13 @@
/*
* mapcontroller.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 "mapcontroller.h"
#include "../lib/GameConstants.h"

View File

@ -1,3 +1,13 @@
/*
* mapcontroller.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 "maphandler.h"

View File

@ -1,3 +1,14 @@
/*
* maphandler.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
*
*/
//code is copied from vcmiclient/mapHandler.cpp with minimal changes
#include "StdInc.h"
#include "maphandler.h"
#include "graphics.h"

View File

@ -1,4 +1,15 @@
/*
* maphandler.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
//code is copied from vcmiclient/mapHandler.h with minimal changes
#include "StdInc.h"
#include "../lib/mapping/CMap.h"

View File

@ -1,3 +1,13 @@
/*
* mapsettings.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 "mapsettings.h"
#include "ui_mapsettings.h"
#include "mainwindow.h"

View File

@ -1,3 +1,13 @@
/*
* mapsettings.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 <QDialog>

View File

@ -1,3 +1,13 @@
/*
* mapview.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 "mapview.h"
#include "mainwindow.h"

View File

@ -1,3 +1,13 @@
/*
* mapview.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 <QGraphicsScene>

View File

@ -1,3 +1,13 @@
/*
* objectbrowser.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 "objectbrowser.h"
#include "../lib/mapObjects/CObjectClassesHandler.h"

View File

@ -1,3 +1,13 @@
/*
* objectbrowser.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 <QSortFilterProxyModel>

View File

@ -1,3 +1,13 @@
/*
* playerparams.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 "playerparams.h"
#include "ui_playerparams.h"

View File

@ -1,3 +1,13 @@
/*
* playerparams.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 <QWidget>

View File

@ -1,3 +1,13 @@
/*
* playersettings.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 "playersettings.h"
#include "ui_playersettings.h"

View File

@ -1,3 +1,13 @@
/*
* playersettings.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 "StdInc.h"

View File

@ -1,3 +1,13 @@
/*
* scenelayer.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 "scenelayer.h"
#include "mainwindow.h"

View File

@ -1,3 +1,13 @@
/*
* scenelayer.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 "../lib/int3.h"

View File

@ -1,3 +1,13 @@
/*
* validator.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 "validator.h"
#include "ui_validator.h"

View File

@ -1,3 +1,13 @@
/*
* validator.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 <QDialog>

View File

@ -1,3 +1,13 @@
/*
* windownewmap.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 "../lib/mapping/CMap.h"
#include "../lib/rmg/CRmgTemplateStorage.h"

View File

@ -1,3 +1,13 @@
/*
* windownewmap.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 <QDialog>