Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup MP2 format and Maps::Tiles class #6940

Merged
merged 7 commits into from
Apr 6, 2023
Merged

Cleanup MP2 format and Maps::Tiles class #6940

merged 7 commits into from
Apr 6, 2023

Conversation

ihhub
Copy link
Owner

@ihhub ihhub commented Apr 4, 2023

  • remove the remaining unused structures in mp2.h file
  • move several methods out of Maps::Tiles class as they don't belong there being too specific to certain object types. Not all methods were moved to keep this pull request relatively small.

relates to #6845

@ihhub ihhub added this to the 1.0.3 milestone Apr 4, 2023
@ihhub ihhub self-assigned this Apr 4, 2023
@ihhub ihhub marked this pull request as draft April 4, 2023 08:18
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-tidy found issue(s) with the introduced code (1/3)

src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-tidy found issue(s) with the introduced code (2/3)

src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.cpp Outdated Show resolved Hide resolved
src/fheroes2/world/world.h Outdated Show resolved Hide resolved
src/fheroes2/world/world.h Outdated Show resolved Hide resolved
src/fheroes2/world/world.h Outdated Show resolved Hide resolved
src/fheroes2/world/world.h Outdated Show resolved Hide resolved
src/fheroes2/world/world.h Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-tidy found issue(s) with the introduced code (3/3)

src/fheroes2/world/world.h Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_objects.cpp Outdated Show resolved Hide resolved
@ihhub ihhub added improvement New feature, request or improvement logic Things related to game logic labels Apr 4, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
src/fheroes2/maps/maps_tiles_quantity.cpp Outdated Show resolved Hide resolved
@ihhub ihhub marked this pull request as ready for review April 4, 2023 08:56
@ihhub
Copy link
Owner Author

ihhub commented Apr 4, 2023

Hi @Branikolog , could you please test general map gameplay for new games and from saves since this pull request touching important parts of the code responsible for retrieving information from objects regarding monster types, gold, artifacts and spells.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
8.1% 8.1% Duplication

@ihhub ihhub merged commit 9d55909 into master Apr 6, 2023
@ihhub ihhub deleted the mp2_format_cleanup branch April 6, 2023 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement logic Things related to game logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants