Skip to content

Commit

Permalink
Use CamcelCase for AnnouncementType enum value names
Browse files Browse the repository at this point in the history
Strip off the enum name prefix from the value names.
  • Loading branch information
DanRStevens committed Feb 3, 2025
1 parent e0dd62e commit 2c4182c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions appOPHD/States/MapViewStateTurn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ void MapViewState::checkColonyShip()
populateStructureMenu();

mWindowStack.bringToFront(&mAnnouncement);
mAnnouncement.announcement(MajorEventAnnouncement::AnnouncementType::ANNOUNCEMENT_COLONY_SHIP_CRASH_WITH_COLONISTS);
mAnnouncement.announcement(MajorEventAnnouncement::AnnouncementType::ColonyShipCrashWithColonists);
mAnnouncement.show();
}
else
{
mWindowStack.bringToFront(&mAnnouncement);
mAnnouncement.announcement(MajorEventAnnouncement::AnnouncementType::ANNOUNCEMENT_COLONY_SHIP_CRASH);
mAnnouncement.announcement(MajorEventAnnouncement::AnnouncementType::ColonyShipCrash);
mAnnouncement.show();
}
}
Expand Down
4 changes: 2 additions & 2 deletions appOPHD/UI/MajorEventAnnouncement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ void MajorEventAnnouncement::announcement(AnnouncementType a)
{
switch (a)
{
case AnnouncementType::ANNOUNCEMENT_COLONY_SHIP_CRASH:
case AnnouncementType::ColonyShipCrash:
mMessage = "Colony ship deorbited and crashed on the surface.";
break;
case AnnouncementType::ANNOUNCEMENT_COLONY_SHIP_CRASH_WITH_COLONISTS:
case AnnouncementType::ColonyShipCrashWithColonists:
mMessage = "Colony ship deorbited and crashed on the surface but you left colonists on board!";
break;
}
Expand Down
4 changes: 2 additions & 2 deletions appOPHD/UI/MajorEventAnnouncement.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class MajorEventAnnouncement : public Window

enum class AnnouncementType
{
ANNOUNCEMENT_COLONY_SHIP_CRASH,
ANNOUNCEMENT_COLONY_SHIP_CRASH_WITH_COLONISTS
ColonyShipCrash,
ColonyShipCrashWithColonists,
};

MajorEventAnnouncement();
Expand Down

0 comments on commit 2c4182c

Please sign in to comment.