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

Standartize member naming for Maps::FileInfo structure #9237

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ihhub
Copy link
Owner

@ihhub ihhub commented Oct 25, 2024

We have two different structures: Maps::FileInfo and BaseMapFormat. Both of them have a lot of similarities. To avoid any confusion this rename has been done. Also, in the future we are going to modify Maps::FileInfo so that BaseMapFormat can own this structure.

We have two different structures: Maps::FileInfo and BaseMapFormat. Both of them have a lot of similarities. To avoid any confusion this rename has been done. Also, in the future we are going to modify Maps::FileInfo so that BaseMapFormat can own this structure.
@ihhub ihhub added the improvement New feature, request or improvement label Oct 25, 2024
@ihhub ihhub added this to the 1.1.4 milestone Oct 25, 2024
@ihhub ihhub self-assigned this Oct 25, 2024
Copy link

sonarcloud bot commented Oct 25, 2024

uint8_t colorsAvailableForComp;
uint8_t availablePlayerColors;
uint8_t humanPlayerColors;
uint8_t computerPlayerColors;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now these names look like these colors are specifically used by human (or computer) players while in fact it may not be really the case, because the same colors may be available both for a human player and for AI. In this regard, "colorsAvailableForXXX" sounds more right IMHO. But this is of course a matter of taste.

@ihhub ihhub marked this pull request as draft November 18, 2024 14:20
@ihhub ihhub marked this pull request as draft November 18, 2024 14:20
@ihhub ihhub modified the milestones: 1.1.4, 1.1.5 Nov 27, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants