-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4139 from IllianiCBT/education_WashoutOptions
Added Second Chance Caste to the Education Module for Warrior Caste Washouts
- Loading branch information
Showing
8 changed files
with
251 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
MekHQ/src/mekhq/campaign/personnel/enums/SecondChanceCaste.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* Copyright (c) 2020-2022 - The MegaMek Team. All Rights Reserved. | ||
* | ||
* This file is part of MekHQ. | ||
* | ||
* MekHQ is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* MekHQ is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with MekHQ. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package mekhq.campaign.personnel.enums; | ||
|
||
import mekhq.MekHQ; | ||
|
||
import java.util.ResourceBundle; | ||
|
||
public enum SecondChanceCaste { | ||
//region Enum Declarations | ||
NONE("SecondChanceCaste.NONE.text", "SecondChanceCaste.NONE.toolTipText"), | ||
BA("SecondChanceCaste.BA.text", "SecondChanceCaste.BA.toolTipText"), | ||
INFANTRY("SecondChanceCaste.INFANTRY.text", "SecondChanceCaste.INFANTRY.toolTipText"), | ||
VEHICLE("SecondChanceCaste.VEHICLE.text", "SecondChanceCaste.VEHICLE.toolTipText"); | ||
//endregion Enum Declarations | ||
|
||
//region Variable Declarations | ||
private final String name; | ||
private final String toolTipText; | ||
//endregion Variable Declarations | ||
|
||
//region Constructors | ||
SecondChanceCaste(final String name, final String toolTipText) { | ||
final ResourceBundle resources = ResourceBundle.getBundle("mekhq.resources.Personnel", | ||
MekHQ.getMHQOptions().getLocale()); | ||
this.name = resources.getString(name); | ||
this.toolTipText = resources.getString(toolTipText); | ||
} | ||
//endregion Constructors | ||
|
||
//region Getters | ||
public String getToolTipText() { | ||
return toolTipText; | ||
} | ||
//endregion Getters | ||
|
||
//region Boolean Comparison Methods | ||
public boolean isNone() { | ||
return this == NONE; | ||
} | ||
|
||
public boolean isBa() { | ||
return this == BA; | ||
} | ||
|
||
public boolean isInfantry() { | ||
return this == INFANTRY; | ||
} | ||
|
||
public boolean isVehicle() { | ||
return this == VEHICLE; | ||
} | ||
//endregion Boolean Comparison Methods | ||
|
||
@Override | ||
public String toString() { | ||
return name; | ||
} | ||
} |
Oops, something went wrong.