mirror of
https://github.com/ihhub/fheroes2.git
synced 2026-10-11 21:59:51 +00:00
Use the latest analysis tools from ubuntu-24.04 (#9003)
This commit is contained in:
@@ -14,12 +14,15 @@ Checks: >-
|
||||
-cppcoreguidelines-pro-type-reinterpret-cast,
|
||||
-cppcoreguidelines-pro-type-union-access,
|
||||
misc-*,
|
||||
-misc-include-cleaner,
|
||||
-misc-non-private-member-variables-in-classes,
|
||||
modernize-*,
|
||||
-modernize-use-auto,
|
||||
-modernize-use-nodiscard,
|
||||
-modernize-use-trailing-return-type,
|
||||
performance-*,
|
||||
-performance-avoid-endl,
|
||||
-performance-enum-size,
|
||||
readability-*,
|
||||
-readability-avoid-const-params-in-decls,
|
||||
-readability-braces-around-statements,
|
||||
|
||||
@@ -8,7 +8,7 @@ permissions: {}
|
||||
jobs:
|
||||
clang:
|
||||
name: Clang Analyzer
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
defaults:
|
||||
run:
|
||||
@@ -18,10 +18,10 @@ jobs:
|
||||
- name: Install dependencies and clang-tools
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tools-15
|
||||
sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tools-18
|
||||
- name: Setup clang-tools
|
||||
run: |
|
||||
sudo update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/scan-build-15 100
|
||||
sudo update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/scan-build-18 100
|
||||
- name: Analyze
|
||||
run: |
|
||||
scan-build --status-bugs -v -o scan-build-result make -j 2
|
||||
|
||||
@@ -14,7 +14,7 @@ permissions: {}
|
||||
jobs:
|
||||
tidy:
|
||||
name: Clang-Tidy
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 60
|
||||
defaults:
|
||||
run:
|
||||
@@ -31,11 +31,11 @@ jobs:
|
||||
- name: Install dependencies and clang-tidy
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tidy-15
|
||||
sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tidy-18
|
||||
- name: Setup clang-tidy
|
||||
run: |
|
||||
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100
|
||||
sudo update-alternatives --install /usr/bin/clang-tidy-diff clang-tidy-diff /usr/bin/clang-tidy-diff-15.py 100
|
||||
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-18 100
|
||||
sudo update-alternatives --install /usr/bin/clang-tidy-diff clang-tidy-diff /usr/bin/clang-tidy-diff-18.py 100
|
||||
- name: Prepare compile_commands.json
|
||||
run: |
|
||||
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DENABLE_STRICT_COMPILATION=ON -DENABLE_IMAGE=ON -DENABLE_TOOLS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
|
||||
@@ -8,7 +8,7 @@ permissions: {}
|
||||
jobs:
|
||||
style:
|
||||
name: Code style check
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 10
|
||||
defaults:
|
||||
run:
|
||||
@@ -19,8 +19,8 @@ jobs:
|
||||
fetch-depth: 50
|
||||
- name: Setup clang-format
|
||||
run: |
|
||||
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-14 100
|
||||
sudo update-alternatives --install /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-14 100
|
||||
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-17 100
|
||||
sudo update-alternatives --install /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-17 100
|
||||
- name: Check code format
|
||||
run: |
|
||||
bash script/tools/check_code_format.sh
|
||||
|
||||
@@ -8,7 +8,7 @@ permissions: {}
|
||||
jobs:
|
||||
iwyu:
|
||||
name: IWYU
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
defaults:
|
||||
run:
|
||||
@@ -24,8 +24,8 @@ jobs:
|
||||
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DENABLE_STRICT_COMPILATION=ON -DENABLE_IMAGE=ON -DENABLE_TOOLS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
- name: Analyze
|
||||
run: |
|
||||
iwyu_tool -p build -j 2 -- -Xiwyu --cxx17ns -Xiwyu --mapping_file="$GITHUB_WORKSPACE/iwyu.map" | (grep -E -v "^$|has correct #includes/fwd-decls" || true) \
|
||||
| tee iwyu-result.txt
|
||||
iwyu_tool -p build -j 2 -- -Xiwyu --cxx17ns -Xiwyu --error -Xiwyu --mapping_file="$GITHUB_WORKSPACE/iwyu.map" | (grep -E -v "^$|has correct #includes/fwd-decls" || true) \
|
||||
| tee iwyu-result.txt
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ failure() }}
|
||||
with:
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
[
|
||||
{ include: [ "<bits/chrono.h>", private, "<chrono>", public ] },
|
||||
{ include: [ "<bits/getopt_core.h>", private, "<unistd.h>", public ] },
|
||||
{ include: [ "<bits/std_abs.h>", private, "<cmath>", public ] },
|
||||
{ include: [ "<bits/std_abs.h>", private, "<cstdlib>", public ] },
|
||||
{ include: [ "<bits/utility.h>", private, "<utility>", public ] },
|
||||
{ include: [ "<bits/chrono.h>", private, "<chrono>", public ] },
|
||||
{ include: [ "<bits/getopt_core.h>", private, "<unistd.h>", public ] },
|
||||
{ include: [ "<bits/std_abs.h>", private, "<cmath>", public ] },
|
||||
{ include: [ "<bits/std_abs.h>", private, "<cstdlib>", public ] },
|
||||
{ include: [ "<bits/utility.h>", private, "<utility>", public ] },
|
||||
|
||||
{ include: [ "<bits/types/struct_tm.h>", private, "<ctime>", public ] },
|
||||
{ include: [ "<bits/types/struct_FILE.h>", private, "<cstdio>", public ] },
|
||||
{ include: [ "<bits/types/struct_tm.h>", private, "<ctime>", public ] },
|
||||
|
||||
{ include: [ "<ext/alloc_traits.h>", private, "<memory>", public ] },
|
||||
{ include: [ "<ext/alloc_traits.h>", private, "<memory>", public ] },
|
||||
|
||||
{ include: [ "<begin_code.h>", private, "<SDL_stdinc.h>", public ] }
|
||||
{ include: [ "<begin_code.h>", private, "<SDL_stdinc.h>", public ] }
|
||||
]
|
||||
|
||||
@@ -1,40 +1,47 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2018 Google LLC
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
###########################################################################
|
||||
# fheroes2: https://github.com/ihhub/fheroes2 #
|
||||
# Copyright (C) 2021 - 2024 #
|
||||
# #
|
||||
# Copyright 2018 Google LLC #
|
||||
# #
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program; if not, write to the #
|
||||
# Free Software Foundation, Inc., #
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
|
||||
###########################################################################
|
||||
|
||||
# Script to determine whether the source code in the Pull Request is formatted correctly.
|
||||
# Exits with a non-zero exit code if formatting is needed.
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Script to determine if source code in Pull Request is properly formatted.
|
||||
# Exits with non 0 exit code if formatting is needed.
|
||||
#
|
||||
# This script assumes to be invoked at the project root directory.
|
||||
# It is assumed that this script is called from the project root directory.
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
FILES_TO_CHECK=$(git diff --name-only HEAD^ | (grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp|java)$" || true) \
|
||||
| (grep -v "^src/thirdparty/.*/.*" || true))
|
||||
|
||||
if [ -z "${FILES_TO_CHECK}" ]; then
|
||||
echo "No source code to check for formatting."
|
||||
if [ -z "$FILES_TO_CHECK" ]; then
|
||||
echo "There is no source code to check the formatting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
FORMAT_DIFF=$(git diff -U0 HEAD^ -- ${FILES_TO_CHECK} | clang-format-diff -p1 -style=file)
|
||||
|
||||
if [ -z "${FORMAT_DIFF}" ]; then
|
||||
echo "All source code in PR properly formatted."
|
||||
if FORMAT_DIFF=$(git diff -U0 HEAD^ -- $FILES_TO_CHECK | clang-format-diff -p1 -style=file) && [ -z "$FORMAT_DIFF" ]; then
|
||||
echo "All the source code in the PR is formatted correctly."
|
||||
exit 0
|
||||
else
|
||||
echo "Found formatting errors!"
|
||||
echo "${FORMAT_DIFF}"
|
||||
echo "Formatting errors found!"
|
||||
echo "$FORMAT_DIFF"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
###########################################################################
|
||||
# fheroes2: https://github.com/ihhub/fheroes2 #
|
||||
# Copyright (C) 2022 - 2023 #
|
||||
# Copyright (C) 2022 - 2024 #
|
||||
# #
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
@@ -20,10 +20,10 @@
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
|
||||
###########################################################################
|
||||
|
||||
# Script to determine if source code in Pull Request has proper copyright headers.
|
||||
# Exits with non-zero exit code if formatting is needed.
|
||||
# Script to determine whether the source code in the Pull Request has correct copyright headers.
|
||||
# Exits with a non-zero exit code if copyright headers need to be updated.
|
||||
#
|
||||
# This script assumes to be invoked at the project root directory.
|
||||
# It is assumed that this script is called from the project root directory.
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
@@ -33,14 +33,13 @@ HEADERS_DIR="$SCRIPT_DIR/copyright_headers"
|
||||
C_LIKE_FILES_TO_CHECK=$(git diff --name-only HEAD^ | (grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp|java|rc)$" || true) \
|
||||
| (grep -v "^src/thirdparty/.*/.*" || true))
|
||||
SCRIPT_FILES_TO_CHECK=$(git diff --name-only HEAD^ | (grep -E ".*(\.(sh|py|ps1)|CMakeLists.txt|Makefile[^/]*|Android.mk|Application.mk)$" || true) \
|
||||
| (grep -v "^script/tools/check_code_format.sh$" || true) \
|
||||
| (grep -v "^src/thirdparty/.*/.*" || true))
|
||||
WINBAT_FILES_TO_CHECK=$(git diff --name-only HEAD^ | (grep -E ".*\.bat$" || true) \
|
||||
| (grep -v "^android/gradlew.bat$" || true) \
|
||||
| (grep -v "^src/thirdparty/.*/.*" || true))
|
||||
|
||||
if [ -z "$C_LIKE_FILES_TO_CHECK" ] && [ -z "$SCRIPT_FILES_TO_CHECK" ] && [ -z "$WINBAT_FILES_TO_CHECK" ]; then
|
||||
echo "No source code to check if the copyright headers are correct."
|
||||
echo "There is no source code to check the correctness of the copyright headers."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -62,10 +61,10 @@ if [ -n "$WINBAT_FILES_TO_CHECK" ]; then
|
||||
fi
|
||||
|
||||
if [ -z "$C_LIKE_FORMAT_DIFF" ] && [ -z "$SCRIPT_FORMAT_DIFF" ] && [ -z "$WINBAT_FORMAT_DIFF" ]; then
|
||||
echo "All source code in PR has proper copyright headers."
|
||||
echo "All the source code in the PR has the correct copyright headers."
|
||||
exit 0
|
||||
else
|
||||
echo "Found invalid copyright headers!"
|
||||
echo "Invalid copyright headers found!"
|
||||
[ -n "$C_LIKE_FORMAT_DIFF" ] && echo "$C_LIKE_FORMAT_DIFF"
|
||||
[ -n "$SCRIPT_FORMAT_DIFF" ] && echo "$SCRIPT_FORMAT_DIFF"
|
||||
[ -n "$WINBAT_FORMAT_DIFF" ] && echo "$WINBAT_FORMAT_DIFF"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2019 - 2023 *
|
||||
* Copyright (C) 2019 - 2024 *
|
||||
* *
|
||||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
|
||||
* Copyright (C) 2008 by Andrey Afletdinov <[email protected]> *
|
||||
@@ -33,7 +33,6 @@
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <ostream>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <type_traits>
|
||||
|
||||
#include "image_palette.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2021 - 2022 *
|
||||
* Copyright (C) 2021 - 2024 *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <fstream> // IWYU pragma: keep
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <system_error>
|
||||
|
||||
#include <zconf.h>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2019 - 2022 *
|
||||
* Copyright (C) 2019 - 2024 *
|
||||
* *
|
||||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
|
||||
* Copyright (C) 2013 by Andrey Afletdinov <[email protected]> *
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <fstream>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <cstddef>
|
||||
#include <initializer_list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
#include <random>
|
||||
#include <set>
|
||||
|
||||
@@ -26,8 +26,10 @@ namespace fheroes2
|
||||
{
|
||||
class Image;
|
||||
class Sprite;
|
||||
enum class FontSize : uint8_t;
|
||||
|
||||
struct FontType;
|
||||
|
||||
enum class FontSize : uint8_t;
|
||||
enum class SupportedLanguage : uint8_t;
|
||||
|
||||
namespace AGG
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <cstdlib>
|
||||
#include <initializer_list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "agg.h"
|
||||
|
||||
@@ -29,13 +29,12 @@
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "army.h"
|
||||
|
||||
@@ -23,14 +23,15 @@
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
|
||||
#include "castle.h"
|
||||
|
||||
class Army;
|
||||
class Castle;
|
||||
class Heroes;
|
||||
class Kingdom;
|
||||
|
||||
struct Funds;
|
||||
|
||||
enum building_t : uint32_t;
|
||||
|
||||
namespace AI
|
||||
{
|
||||
// Builds the given building in the given castle if possible. If possible and necessary, obtains the resources
|
||||
|
||||
@@ -26,12 +26,10 @@
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -62,7 +60,6 @@
|
||||
#include "maps_fileinfo.h"
|
||||
#include "maps_tiles.h"
|
||||
#include "maps_tiles_helper.h"
|
||||
#include "math_base.h"
|
||||
#include "monster.h"
|
||||
#include "morale.h"
|
||||
#include "mp2.h"
|
||||
|
||||
@@ -23,12 +23,12 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -27,11 +27,10 @@
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
#include <ostream>
|
||||
#include <random>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
#include "army_troop.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2022 - 2023 *
|
||||
* Copyright (C) 2022 - 2024 *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -28,13 +28,13 @@
|
||||
#include <cstdlib>
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
|
||||
#include "agg_file.h"
|
||||
#include "audio.h"
|
||||
#include "dir.h"
|
||||
#include "logging.h"
|
||||
#include "m82.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2022 - 2023 *
|
||||
* Copyright (C) 2022 - 2024 *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "audio.h"
|
||||
|
||||
struct ListFiles;
|
||||
|
||||
namespace M82
|
||||
@@ -34,6 +32,11 @@ namespace M82
|
||||
enum SoundType : int;
|
||||
}
|
||||
|
||||
namespace Music
|
||||
{
|
||||
enum class PlaybackMode : uint8_t;
|
||||
}
|
||||
|
||||
namespace AudioManager
|
||||
{
|
||||
class AudioInitializer
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "battle_animation.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
|
||||
#include "battle_animation.h"
|
||||
#include "logging.h"
|
||||
#include "monster.h"
|
||||
#include "monster_anim.h"
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#include "battle_command.h"
|
||||
#include "battle_grave.h"
|
||||
#include "battle_pathfinding.h"
|
||||
#include "battle_tower.h"
|
||||
#include "icn.h"
|
||||
#include "spell.h"
|
||||
#include "spell_storage.h"
|
||||
@@ -57,10 +56,13 @@ namespace Battle
|
||||
class Bridge;
|
||||
class Catapult;
|
||||
class Force;
|
||||
class Units;
|
||||
class Unit;
|
||||
class Interface;
|
||||
class Status;
|
||||
class Tower;
|
||||
class Unit;
|
||||
class Units;
|
||||
|
||||
enum class TowerType : uint8_t;
|
||||
|
||||
class Actions : public std::list<Command>
|
||||
{};
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "battle_army.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
|
||||
#include "army_troop.h"
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#ifndef H2BATTLE_ARMY_H
|
||||
#define H2BATTLE_ARMY_H
|
||||
|
||||
#include <algorithm> // IWYU pragma: keep
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <iterator>
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "battle_board.h"
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <iterator>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <type_traits>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "audio.h"
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "battle.h"
|
||||
#include "battle_animation.h"
|
||||
#include "battle_board.h"
|
||||
#include "battle_troop.h"
|
||||
@@ -64,6 +63,11 @@ namespace Battle
|
||||
class Tower;
|
||||
class Units;
|
||||
|
||||
struct TargetInfo;
|
||||
struct TargetsInfo;
|
||||
|
||||
enum class CastleDefenseElement : int;
|
||||
|
||||
void DialogBattleSettings();
|
||||
bool DialogBattleSurrender( const HeroBase & hero, uint32_t cost, Kingdom & kingdom );
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <functional>
|
||||
#include <set>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
#include "battle_arena.h"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "army.h"
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "campaign_data.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "artifact.h"
|
||||
#include "campaign_data.h"
|
||||
#include "color.h"
|
||||
#include "game_video_type.h"
|
||||
#include "heroes.h"
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "army.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2021 - 2023 *
|
||||
* Copyright (C) 2021 - 2024 *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -25,11 +25,15 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "game_video_type.h"
|
||||
#include "maps_fileinfo.h"
|
||||
|
||||
class StreamBase;
|
||||
|
||||
namespace Video
|
||||
{
|
||||
enum class VideoAction : int;
|
||||
}
|
||||
|
||||
namespace Campaign
|
||||
{
|
||||
enum CampaignID
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "agg_image.h"
|
||||
#include "army_troop.h"
|
||||
#include "audio_manager.h"
|
||||
#include "castle.h"
|
||||
#include "castle_building_info.h"
|
||||
#include "cursor.h"
|
||||
#include "dialog.h"
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "castle.h"
|
||||
#include "image.h"
|
||||
#include "interface_itemsbar.h"
|
||||
#include "math_base.h"
|
||||
@@ -39,8 +38,12 @@ namespace fheroes2
|
||||
class ButtonBase;
|
||||
}
|
||||
|
||||
class Castle;
|
||||
class StatusBar;
|
||||
|
||||
enum building_t : uint32_t;
|
||||
enum class BuildingStatus : int32_t;
|
||||
|
||||
class BuildingInfo
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <iterator>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "ai_planner.h"
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "castle.h"
|
||||
#include "dialog.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "artifact.h"
|
||||
#include "audio_manager.h"
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include "dialog.h"
|
||||
#include "icn.h"
|
||||
#include "image.h"
|
||||
#include "math_base.h"
|
||||
#include "screen.h"
|
||||
#include "settings.h"
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "cursor.h"
|
||||
#include "dialog.h"
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "cursor.h"
|
||||
#include "dialog.h"
|
||||
#include "game_hotkeys.h"
|
||||
#include "game_language.h"
|
||||
#include "icn.h"
|
||||
#include "image.h"
|
||||
#include "interface_list.h"
|
||||
|
||||
@@ -20,12 +20,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "game_language.h"
|
||||
|
||||
namespace fheroes2
|
||||
{
|
||||
enum class SupportedLanguage : uint8_t;
|
||||
|
||||
// UI window to select a language by user.
|
||||
void selectLanguage( const std::vector<SupportedLanguage> & languages, const SupportedLanguage currentLanguage );
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "cursor.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
#include "castle.h"
|
||||
#include "kingdom.h"
|
||||
#include "profit.h"
|
||||
#include "race.h"
|
||||
|
||||
@@ -26,11 +26,12 @@
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "castle.h"
|
||||
#include "resource.h"
|
||||
|
||||
class Kingdom;
|
||||
|
||||
enum building_t : uint32_t;
|
||||
|
||||
namespace Difficulty
|
||||
{
|
||||
// !!! IMPORTANT !!!
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <exception>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2019 - 2023 *
|
||||
* Copyright (C) 2019 - 2024 *
|
||||
* *
|
||||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
|
||||
* Copyright (C) 2010 by Andrey Afletdinov <fheroes2@gmail.com> *
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "game_delays.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
#include "gamedefs.h"
|
||||
#include "settings.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "game_interface.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "cursor.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include "image.h"
|
||||
#include "localevent.h"
|
||||
#include "logging.h"
|
||||
#include "maps_fileinfo.h"
|
||||
#include "math_base.h"
|
||||
#include "mus.h"
|
||||
#include "screen.h"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -26,7 +26,10 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "mp2.h"
|
||||
namespace MP2
|
||||
{
|
||||
enum MapObjectType : uint16_t;
|
||||
}
|
||||
|
||||
namespace Skill
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "cursor.h"
|
||||
#include "dir.h"
|
||||
#include "game_delays.h"
|
||||
#include "game_video_type.h"
|
||||
#include "localevent.h"
|
||||
#include "logging.h"
|
||||
#include "screen.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2020 - 2023 *
|
||||
* Copyright (C) 2020 - 2024 *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "game_video_type.h"
|
||||
#include "image.h"
|
||||
#include "math_base.h"
|
||||
#include "screen.h"
|
||||
@@ -36,6 +35,8 @@ namespace fheroes2
|
||||
|
||||
namespace Video
|
||||
{
|
||||
enum class VideoAction : int;
|
||||
|
||||
class Subtitle
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <ctime>
|
||||
#include <memory>
|
||||
|
||||
#include "campaign_scenariodata.h"
|
||||
#include "game_language.h"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <initializer_list>
|
||||
#include <memory>
|
||||
|
||||
#include "game_language.h"
|
||||
#include "icn.h"
|
||||
#include "image.h"
|
||||
#include "math_base.h"
|
||||
|
||||
@@ -20,14 +20,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "game_language.h"
|
||||
|
||||
namespace fheroes2
|
||||
{
|
||||
class Sprite;
|
||||
|
||||
enum class SupportedLanguage : uint8_t;
|
||||
|
||||
void generateAlphabet( const SupportedLanguage language, std::vector<std::vector<Sprite>> & icnVsSprite );
|
||||
|
||||
bool isAlphabetSupported( const SupportedLanguage language );
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
#include "game_delays.h"
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "agg_image.h"
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
|
||||
#include "agg_image.h"
|
||||
|
||||
|
||||
@@ -28,9 +28,8 @@
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2019 - 2023 *
|
||||
* Copyright (C) 2019 - 2024 *
|
||||
* *
|
||||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
|
||||
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "route.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
|
||||
#include "game_io.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* fheroes2: https://github.com/ihhub/fheroes2 *
|
||||
* Copyright (C) 2019 - 2023 *
|
||||
* Copyright (C) 2019 - 2024 *
|
||||
* *
|
||||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
|
||||
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "direction.h"
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "maps_tiles.h"
|
||||
#include "maps_tiles_helper.h"
|
||||
#include "math_base.h"
|
||||
#include "mp2.h"
|
||||
#include "payment.h"
|
||||
#include "players.h"
|
||||
#include "profit.h"
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include "heroes.h"
|
||||
#include "heroes_recruits.h"
|
||||
#include "monster.h"
|
||||
#include "mp2.h"
|
||||
#include "pairs.h"
|
||||
#include "players.h"
|
||||
#include "puzzle.h"
|
||||
@@ -45,6 +44,11 @@ class StreamBase;
|
||||
|
||||
struct EventDate;
|
||||
|
||||
namespace MP2
|
||||
{
|
||||
enum MapObjectType : uint16_t;
|
||||
}
|
||||
|
||||
namespace Maps
|
||||
{
|
||||
class Tiles;
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
@@ -42,6 +41,7 @@
|
||||
#include "maps_fileinfo.h"
|
||||
#include "maps_tiles.h"
|
||||
#include "maps_tiles_helper.h"
|
||||
#include "monster.h"
|
||||
#include "mp2.h"
|
||||
#include "race.h"
|
||||
#include "world.h"
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cstddef>
|
||||
#include <initializer_list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "logging.h"
|
||||
#include "maps_tiles.h"
|
||||
#include "maps_tiles_helper.h"
|
||||
#include "mp2.h"
|
||||
#include "players.h"
|
||||
#include "race.h"
|
||||
#include "resource.h"
|
||||
|
||||
@@ -28,12 +28,16 @@
|
||||
#include <vector>
|
||||
|
||||
#include "math_base.h"
|
||||
#include "mp2.h"
|
||||
|
||||
#define TILEWIDTH 32
|
||||
|
||||
class Heroes;
|
||||
|
||||
namespace MP2
|
||||
{
|
||||
enum MapObjectType : uint16_t;
|
||||
}
|
||||
|
||||
using MapsIndexes = std::vector<int32_t>;
|
||||
|
||||
namespace Maps
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#define H2MAPS_OBJECTS_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <initializer_list>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -26,13 +26,18 @@
|
||||
#include "army_troop.h"
|
||||
#include "artifact.h"
|
||||
#include "math_base.h"
|
||||
#include "mp2.h"
|
||||
#include "resource.h"
|
||||
#include "skill.h"
|
||||
|
||||
class Monster;
|
||||
class Spell;
|
||||
|
||||
namespace MP2
|
||||
{
|
||||
enum MapObjectType : uint16_t;
|
||||
enum ObjectIcnType : uint8_t;
|
||||
}
|
||||
|
||||
namespace Maps
|
||||
{
|
||||
class Tiles;
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <cstdlib>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
@@ -46,6 +45,7 @@
|
||||
#include "maps_tiles_helper.h"
|
||||
#include "monster.h"
|
||||
#include "monster_anim.h"
|
||||
#include "mp2.h"
|
||||
#include "race.h"
|
||||
#include "spell.h"
|
||||
#include "til.h"
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include "math_base.h"
|
||||
#include "mp2.h"
|
||||
|
||||
class Heroes;
|
||||
|
||||
@@ -38,6 +37,11 @@ namespace Interface
|
||||
class GameArea;
|
||||
}
|
||||
|
||||
namespace MP2
|
||||
{
|
||||
enum ObjectIcnType : uint8_t;
|
||||
}
|
||||
|
||||
namespace Maps
|
||||
{
|
||||
class Tiles;
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "icn.h"
|
||||
#include "logging.h"
|
||||
#include "maps_fileinfo.h"
|
||||
#include "mp2.h"
|
||||
#include "rand.h"
|
||||
#include "serialize.h"
|
||||
#include "settings.h"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user