-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
base: master
Are you sure you want to change the base?
Conversation
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.
Quality Gate passedIssues Measures |
uint8_t colorsAvailableForComp; | ||
uint8_t availablePlayerColors; | ||
uint8_t humanPlayerColors; | ||
uint8_t computerPlayerColors; |
There was a problem hiding this comment.
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.
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.