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

Planetary Conditions Enums #5203

Merged
merged 39 commits into from
Mar 23, 2024

Conversation

kuronekochomusuke
Copy link
Collaborator

@kuronekochomusuke kuronekochomusuke commented Feb 24, 2024

MegaMek/mekhq#3834 requires this to be merged

convert the int constants to enums

  • light enum
  • weather enum
  • wind enum
  • wind direction enum
  • atmosphere enum
  • fog enum
  • blowing sand enum
  • emi enum

megamek/src/megamek/common/BattleArmor.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/BipedMech.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/Infantry.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/Infantry.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/LandAirMech.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/QuadMech.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/QuadVee.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/Tank.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/TripodMech.java Fixed Show fixed Hide fixed
megamek/src/megamek/common/VTOL.java Fixed Show fixed Hide fixed
@kuronekochomusuke kuronekochomusuke marked this pull request as ready for review March 9, 2024 16:20
Copy link
Member

@SJuliez SJuliez left a comment

Choose a reason for hiding this comment

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

I have a few comments. Also, I suggest placing features in a common package, i.e. to use a package called planetaryconditions in common and having PlanetaryConditions.java and the enums in there. I know that we have all manner of groupings but this seems a sensible way to do it with the (possible) advantage of allowing a low visibility of classes

megamek/src/megamek/common/Compute.java Show resolved Hide resolved
megamek/src/megamek/common/Dropship.java Show resolved Hide resolved
megamek/i18n/megamek/common/messages.properties Outdated Show resolved Hide resolved
megamek/src/megamek/common/PlanetaryConditions.java Outdated Show resolved Hide resolved
@kuronekochomusuke kuronekochomusuke marked this pull request as draft March 20, 2024 21:24
@kuronekochomusuke kuronekochomusuke marked this pull request as ready for review March 21, 2024 00:41
@SJuliez
Copy link
Member

SJuliez commented Mar 23, 2024

The CI fails at cache rebuilding. Did you give this a test? (delete the unit cache and rebuild). Might be the test itself has a problem

@kuronekochomusuke
Copy link
Collaborator Author

there was an issue with one of the units that has been fixed a few days ago.

@SJuliez SJuliez merged commit 4f4b397 into MegaMek:master Mar 23, 2024
2 of 4 checks passed
@kuronekochomusuke kuronekochomusuke added the Planetary Conditions Planetary Conditions changes label Mar 30, 2024
@kuronekochomusuke kuronekochomusuke deleted the planetaryConditionsEnums branch April 20, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Planetary Conditions Planetary Conditions changes Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants