-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move ACAR base code to MM, needs to implement GUI and force setup
- Loading branch information
Showing
88 changed files
with
1,828 additions
and
1,714 deletions.
There are no files selected for viewing
Binary file added
BIN
+188 KB
...s/ACAR - Abstract Combat Auto Resolve/ACAR-Abstract Combat Auto Resolve documentation.pdf
Binary file not shown.
115 changes: 115 additions & 0 deletions
115
megamek/i18n/megamek/client/acs-report-messages.properties
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,115 @@ | ||
# | ||
# Copyright (c) 2020-2024 - 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/>. | ||
# | ||
# | ||
# Copyright (c) 2020-2024 - 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/>. | ||
# | ||
100=<h1>Abstract Combat Auto Resolution</h1> | ||
|
||
101=<h2>● Starting Scenario Phase</h2> | ||
102=Team {0} Formations: | ||
103={0} has {1} units. | ||
104={0}, Armor: {1}%, Structure: {2}%, Crew: {3}, Hits: {4} | ||
|
||
999= | ||
1000=<h2>○ Initiative Phase for Round {0}</h2> | ||
1005=<h2>○ Initiative Phase for Start of Game Deployment</h2> | ||
1015=▻ {0} has {1} initiative bonus. | ||
1020=▻ The general turn order is: | ||
1040=<h3>※ The turn order is:</h3> | ||
1045=▻ {0}({1}), rolled {2} | ||
1060=<h3>⁜ Future Deployment</h3> | ||
1065=<h4>▶ Round: #{0}</h4> | ||
1066={0} ({1}), Start: {2} | ||
1067={0}[Team {1}] | ||
1200=<hr/> | ||
1230={0} | ||
1231={0} ({1}) {2} | ||
1242=no effect | ||
9999=<h2>● End of the Game</h2> | ||
2020={0} rolls a {1}. | ||
|
||
2201=<h2>◔ Engagement and Control Phase</h2> | ||
2200={0} engages {1} under {2} conditions. | ||
2203=needs {0}+ to control engagement. | ||
2202={0} rolled {1}. | ||
2204={0} gains engagement control! | ||
2205={0} fails to gain engagement control. | ||
|
||
|
||
2002=<h2>◑ Firing Phase</h2> | ||
2001={0} attacks {1}. | ||
3100={0} received {1} damage, {2} armor left | ||
2010=The attack cannot succeed: {0} | ||
2003=Needed {0}+ to hit <i>〈{1}〉</i>. | ||
2012=The attack misses. | ||
2013=The attack hits! | ||
3090=High Stress episode! | ||
3091=It's crippled! | ||
3092=☠ It's destroyed! | ||
3094={0} took {1} damage to its targeting system. | ||
3095=Rolling for internal damage. | ||
3096={0} took {1} damage to its weapons system. | ||
3097=Took no internal damage. | ||
|
||
3299=<h2>◕ End Phase</h2> | ||
3298=<h3>Destroyed Units</h3> | ||
3330={0} attempts to withdraw under {1} conditions. | ||
3331=Needs {0}+ to successfully withdraw <i>〈{1}〉</i>. | ||
3332={0} rolled {1} for withdrawal. | ||
3333=The withdrawal is successful! | ||
3334=The withdrawal attempt fails. | ||
3335={0} has has succumbed from his wounds ☠ | ||
3336={0} is still alive ({1} hits) ⛑ | ||
|
||
3337={0} has been devastated, there is nothing left of it. | ||
3338={0} was destroyed by the pilot ejection. | ||
3339={0} was destroyed after being pushed off the combat envelope. | ||
3340={0} was captured by enemy forces. | ||
3341={0} has left the battlefield in full retreat. | ||
3342={0} never joined the battle. | ||
3343={0} was destroyed, it is salvageable. | ||
3344={0} was destroyed by surprise, it is salvageable. | ||
|
||
4500={0} attempts a morale check. Need {1} to succeed. | ||
4501={0} rolled {1}. | ||
4502={0} holds steady and does not lose morale. | ||
4503={0} fails its morale check! Morale worsens from {1} to {2}. | ||
|
||
5000=<h2>● End of Combat</h2> | ||
5002=Team {0} Report: | ||
5003={0} has {1} units remaining. | ||
5004={0}, Armor remaining: {1}%, Structure remaining: {2}%, Crew: {3}, Hits: {4} | ||
5005={0} - Armor remaining: {1}%, Structure remaining: {2}% | ||
5006={0} has {1} units destroyed. | ||
5007={0} has {1} units retreating. |
Empty file.
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
20 changes: 20 additions & 0 deletions
20
megamek/src/megamek/client/ui/dialogs/AutoResolveSimulationLogDialog.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,20 @@ | ||
package megamek.client.ui.dialogs; | ||
|
||
import megamek.client.ui.dialogs.helpDialogs.AbstractHelpDialog; | ||
import megamek.common.internationalization.Internationalization; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
import java.io.File; | ||
|
||
public class AutoResolveSimulationLogDialog extends AbstractHelpDialog { | ||
|
||
public AutoResolveSimulationLogDialog(final JFrame frame, File logFile) { | ||
super(frame, Internationalization.getText("AutoResolveSimulationLogDialog.title"), | ||
logFile.getAbsolutePath()); | ||
|
||
setMinimumSize(new Dimension(800, 400)); | ||
setModalExclusionType(ModalExclusionType.TOOLKIT_EXCLUDE); | ||
} | ||
|
||
} |
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
68 changes: 0 additions & 68 deletions
68
megamek/src/megamek/common/autoresolve/AutoResolveMethod.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.