mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 09:55:41 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf79ccb85c |
+1
-1
@@ -279,7 +279,7 @@ class ActionResultApplierImpl(validator: Option[Validator]) extends ActionResult
|
||||
.getOrElse(afterVictor)
|
||||
|
||||
val afterEagleMap = result.newEagleMap
|
||||
.map(em => afterGameType.copy(eagleMap = em))
|
||||
.map(em => afterGameType.copy(eagleMap = Some(em)))
|
||||
.getOrElse(afterGameType)
|
||||
|
||||
afterEagleMap.copy(actionResultCount = afterEagleMap.actionResultCount + 1)
|
||||
|
||||
@@ -54,7 +54,7 @@ object GameStateViewFilter {
|
||||
battalionTypes = gs.battalionTypes,
|
||||
chronicleEntries = gs.chronicleEntries,
|
||||
gameType = gs.gameType,
|
||||
eagleMap = Some(gs.eagleMap)
|
||||
eagleMap = gs.eagleMap
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,6 @@ import net.eagle0.eagle.common.eagle_map_info.EagleMapInfo as EagleMapInfoProto
|
||||
import net.eagle0.eagle.model.state.game_state.EagleMapInfo
|
||||
|
||||
object EagleMapInfoConverter {
|
||||
private def isSet(proto: EagleMapInfoProto): Boolean =
|
||||
proto.mapWidth != 0 || proto.mapHeight != 0 || proto.sha256.nonEmpty
|
||||
|
||||
def toProto(eagleMapInfo: EagleMapInfo): EagleMapInfoProto =
|
||||
EagleMapInfoProto(
|
||||
mapWidth = eagleMapInfo.mapWidth,
|
||||
@@ -23,14 +20,8 @@ object EagleMapInfoConverter {
|
||||
centroidsSha256 = proto.centroidsSha256
|
||||
)
|
||||
|
||||
def fromRequiredProto(proto: Option[EagleMapInfoProto]): EagleMapInfo = {
|
||||
val eagleMapInfo = proto
|
||||
.getOrElse(throw new IllegalArgumentException("EagleMapInfo proto is required"))
|
||||
fromProto(eagleMapInfo)
|
||||
}
|
||||
|
||||
def fromProtoOption(proto: Option[EagleMapInfoProto]): Option[EagleMapInfo] =
|
||||
proto
|
||||
.filter(isSet)
|
||||
.filter(p => p.mapWidth != 0 || p.mapHeight != 0 || p.sha256.nonEmpty)
|
||||
.map(fromProto)
|
||||
}
|
||||
|
||||
+3
-3
@@ -71,7 +71,7 @@ object GameStateConverter {
|
||||
randomSeed: Long,
|
||||
chronicleEntries: Vector[ChronicleEntry],
|
||||
gameType: GameType,
|
||||
eagleMap: net.eagle0.eagle.model.state.game_state.EagleMapInfo
|
||||
eagleMap: Option[net.eagle0.eagle.model.state.game_state.EagleMapInfo]
|
||||
) =>
|
||||
GameStateProto(
|
||||
gameId = gameId,
|
||||
@@ -97,7 +97,7 @@ object GameStateConverter {
|
||||
chronicleEntries = chronicleEntries.map(ChronicleEntryConverter.toProto),
|
||||
gameType = GameTypeConverter.toProto(gameType)._1,
|
||||
tutorialPhase = GameTypeConverter.toProto(gameType)._2,
|
||||
eagleMap = Some(EagleMapInfoConverter.toProto(eagleMap))
|
||||
eagleMap = eagleMap.map(EagleMapInfoConverter.toProto)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ object GameStateConverter {
|
||||
gameType =
|
||||
if gameType == GameTypeProto.UNKNOWN_GAME_TYPE then GameType.Normal
|
||||
else GameTypeConverter.fromProto(gameType, tutorialPhase),
|
||||
eagleMap = EagleMapInfoConverter.fromRequiredProto(eagleMap)
|
||||
eagleMap = EagleMapInfoConverter.fromProtoOption(eagleMap)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@ case class GameState(
|
||||
randomSeed: Long,
|
||||
chronicleEntries: Vector[ChronicleEntry],
|
||||
gameType: GameType,
|
||||
eagleMap: EagleMapInfo
|
||||
eagleMap: Option[EagleMapInfo] = None
|
||||
)
|
||||
|
||||
@@ -54,13 +54,7 @@ object InMemoryHistory {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = net.eagle0.eagle.model.state.GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = net.eagle0.eagle.model.state.GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -2017,13 +2017,7 @@ object SqliteHistory {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@@ -493,12 +493,14 @@ object FixedNewGameCreation extends NewGameCreation {
|
||||
}
|
||||
|
||||
private def genericStartGameResult(gameId: GameId, gameParameters: GameParameters): ActionResultC = {
|
||||
val eagleMapProto = gameParameters.getEagleMap
|
||||
val eagleMap = EagleMapInfo(
|
||||
mapWidth = eagleMapProto.mapWidth,
|
||||
mapHeight = eagleMapProto.mapHeight,
|
||||
sha256 = eagleMapProto.sha256,
|
||||
centroidsSha256 = eagleMapProto.centroidsSha256
|
||||
val eagleMapProto = gameParameters.eagleMap
|
||||
val eagleMap = eagleMapProto.map(em =>
|
||||
EagleMapInfo(
|
||||
mapWidth = em.mapWidth,
|
||||
mapHeight = em.mapHeight,
|
||||
sha256 = em.sha256,
|
||||
centroidsSha256 = em.centroidsSha256
|
||||
)
|
||||
)
|
||||
ActionResultC(
|
||||
actionResultType = ActionResultType.GameStart,
|
||||
@@ -512,7 +514,7 @@ object FixedNewGameCreation extends NewGameCreation {
|
||||
)
|
||||
),
|
||||
newRandomSeed = Some(gameId),
|
||||
newEagleMap = Some(eagleMap)
|
||||
newEagleMap = eagleMap
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+8
-7
@@ -110,12 +110,13 @@ object TutorialGameCreation {
|
||||
|
||||
// Start with base ActionResultC
|
||||
// Start at BattleRequest phase so battle begins immediately
|
||||
val eagleMapProto = tutorialParams.getEagleMap
|
||||
val eagleMap = EagleMapInfo(
|
||||
mapWidth = eagleMapProto.mapWidth,
|
||||
mapHeight = eagleMapProto.mapHeight,
|
||||
sha256 = eagleMapProto.sha256,
|
||||
centroidsSha256 = eagleMapProto.centroidsSha256
|
||||
val eagleMap = tutorialParams.eagleMap.map(em =>
|
||||
EagleMapInfo(
|
||||
mapWidth = em.mapWidth,
|
||||
mapHeight = em.mapHeight,
|
||||
sha256 = em.sha256,
|
||||
centroidsSha256 = em.centroidsSha256
|
||||
)
|
||||
)
|
||||
|
||||
val baseResult = ActionResultC(
|
||||
@@ -126,7 +127,7 @@ object TutorialGameCreation {
|
||||
newRandomSeed = Some(gameId),
|
||||
newProvinces = provinces,
|
||||
newGameType = Some(GameType.Tutorial(TutorialPhase.OpeningBattle)),
|
||||
newEagleMap = Some(eagleMap)
|
||||
newEagleMap = eagleMap
|
||||
)
|
||||
|
||||
// Build factions, heroes, and battalions from tutorial parameters
|
||||
|
||||
@@ -66,7 +66,7 @@ protected:
|
||||
net::eagle0::shardok::storage::fb::DrawType_UNKNOWN_DRAW_TYPE);
|
||||
endGameCondition.mutate_victory_details(
|
||||
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
||||
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
||||
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
||||
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
||||
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
||||
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
||||
|
||||
@@ -75,7 +75,7 @@ protected:
|
||||
net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
||||
const auto mapOffset = AddHexMap(fbb, hexMap);
|
||||
|
||||
const vector<int8_t> attackerVC{
|
||||
const auto attackerVC = vector<int8_t>{
|
||||
net::eagle0::shardok::storage::fb::
|
||||
VictoryCondition_VICTORY_CONDITION_LAST_PLAYER_STANDING,
|
||||
net::eagle0::shardok::storage::fb::
|
||||
@@ -87,7 +87,7 @@ protected:
|
||||
1000,
|
||||
&attackerVC);
|
||||
|
||||
const vector<int8_t> defenderVC{
|
||||
const auto defenderVC = vector<int8_t>{
|
||||
net::eagle0::shardok::storage::fb::
|
||||
VictoryCondition_VICTORY_CONDITION_WIN_AFTER_MAX_ROUNDS,
|
||||
net::eagle0::shardok::storage::fb::
|
||||
|
||||
@@ -33,7 +33,7 @@ protected:
|
||||
defenderPlayer};
|
||||
const auto playersOffset = fbb.CreateVectorOfSortedTables(&playersVec);
|
||||
|
||||
std::vector<Unit> units{
|
||||
auto units = std::vector<Unit>{
|
||||
AddGenericUnit(0, 0, attackerLocation),
|
||||
AddGenericUnit(1, 1, defenderLocation)};
|
||||
if (secondAttacker) { units.push_back(AddGenericUnit(0, 2, attacker2Location)); }
|
||||
|
||||
@@ -67,7 +67,7 @@ void EXPECT_CONTAINS(const VecT& vec, const T& obj) {
|
||||
|
||||
template<class VecT, class F>
|
||||
auto CHECK_NOCONTAINS_WHERE(const VecT& vec, F where) -> bool {
|
||||
for (size_t i = 0; i < vec.size(); i++) {
|
||||
for (size_t i = 0; i < vec.size(); ++i) {
|
||||
if (where(vec[i])) {
|
||||
std::cout << "Found at index " << i << '\n';
|
||||
return false;
|
||||
|
||||
@@ -18,7 +18,7 @@ TEST(PercentileRollOddsTests, singleStat_returnsExpected) {
|
||||
const std::vector<double> expectedBonuses =
|
||||
{-25.0, -12.8, -3.125, -0.2, 0.0, 0.2, 3.125, 12.8, 25.0, 28.1216};
|
||||
|
||||
for (size_t i = 0; i < stats.size(); i++) {
|
||||
for (size_t i = 0; i < stats.size(); ++i) {
|
||||
EXPECT_DOUBLE_EQ(expectedBonuses[i], BonusFromStat(stats[i]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class MoveCommandTest : public ::testing::Test {
|
||||
net::eagle0::shardok::storage::fb::BattalionTypeId_UNDEAD);
|
||||
undeadUnit.mutable_battalion().mutate_size(500);
|
||||
undeadUnit.mutable_location() = startLocation;
|
||||
for (uint32_t i = 0; i < undeadUnit.opponent_knowledge()->size(); i++) {
|
||||
for (uint32_t i = 0; i < undeadUnit.opponent_knowledge()->size(); ++i) {
|
||||
undeadUnit.mutable_opponent_knowledge()->Mutate(i, 0);
|
||||
}
|
||||
undeadUnit.mutate_remaining_action_points(12);
|
||||
@@ -210,7 +210,7 @@ TEST_F(MoveCommandTest, Execute_movesActor) {
|
||||
zocCoords)
|
||||
.Execute(gameState, randomGenerator);
|
||||
|
||||
for (size_t i = 0; i < interimTargets.size(); i++) {
|
||||
for (size_t i = 0; i < interimTargets.size(); ++i) {
|
||||
EXPECT_EQ(interimTargets[i], ChangedUnit(results[i], 0)->location());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,13 +75,7 @@ class FactionLeaderProvinceRankerTest extends AnyFlatSpec with Matchers with Bef
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"rankedProvinceIds" should "order by hostile, then hostile + neutral" in {
|
||||
|
||||
@@ -79,13 +79,7 @@ class FixLeaderAloneCommandSelectorTest extends AnyFlatSpec with Matchers with B
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def makeMarchAvailable(
|
||||
|
||||
@@ -84,13 +84,7 @@ class InvitationCommandSelectorTest extends AnyFlatSpec with Matchers with Befor
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val actingFaction: FactionC = makeFaction(
|
||||
|
||||
@@ -98,13 +98,7 @@ class MidGameAIClientTest extends AnyFlatSpec with Matchers with BeforeAndAfterE
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def makeFaction(
|
||||
|
||||
+1
-7
@@ -110,13 +110,7 @@ class MoveLeaderToBetterProvinceCommandChooserTest extends AnyFlatSpec with Matc
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val faction: FactionC = makeFaction(
|
||||
|
||||
@@ -351,13 +351,7 @@ class ResolveDiplomacyCommandSelectorTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val acceptRejectAndImprison =
|
||||
|
||||
@@ -146,13 +146,7 @@ class SeekMoreLeadersCommandChooserTest extends AnyFlatSpec with Matchers with B
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def makeMarchAvailable(
|
||||
|
||||
+1
-7
@@ -67,13 +67,7 @@ class ActionResultApplierImplTest extends AnyFlatSpec with Matchers with BeforeA
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
// ============ Basic State Updates ============
|
||||
|
||||
+1
-7
@@ -70,13 +70,7 @@ class AvailableAlmsCommandFactoryTest extends AnyFlatSpec with Matchers with Bef
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val extraProvinceVassal1 = HeroC(
|
||||
|
||||
+1
-7
@@ -86,13 +86,7 @@ class AvailableApprehendOutlawCommandFactoryTest extends AnyFlatSpec with Matche
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -97,13 +97,7 @@ class AvailableArmTroopsCommandFactoryTest extends AnyFlatSpec with Matchers wit
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommands" should "return nothing if there are no battalions" in {
|
||||
|
||||
+1
-7
@@ -184,13 +184,7 @@ class AvailableAttackDecisionCommandFactoryTest extends AnyFlatSpec with Matcher
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def getAttackDecisionCommand(gs: GameState): AttackDecisionAvailable =
|
||||
|
||||
+1
-7
@@ -62,13 +62,7 @@ class AvailableCommandsFactoryTest extends AnyFlatSpec with Matchers with MockFa
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val baseProvince = ProvinceC(
|
||||
|
||||
+1
-7
@@ -70,13 +70,7 @@ class AvailableControlWeatherCommandsFactoryTest extends AnyFlatSpec with Before
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -78,13 +78,7 @@ class AvailableDeclineQuestCommandsFactoryTest extends AnyFlatSpec with Matchers
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommand" should "return None when the province is not ruled by the faction leader" in {
|
||||
|
||||
+1
-7
@@ -147,13 +147,7 @@ class AvailableDefendCommandsFactoryTest extends AnyFlatSpec with BeforeAndAfter
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val defendingProvince = ProvinceC(
|
||||
|
||||
+1
-7
@@ -153,13 +153,7 @@ class AvailableDiplomacyCommandsFactoryTest extends AnyFlatSpec with Matchers wi
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def gameState: GameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -87,13 +87,7 @@ class AvailableDivineCommandsFactoryTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommand" should "return None when the province is not ruled by the faction leader" in {
|
||||
|
||||
+1
-7
@@ -58,13 +58,7 @@ class AvailableExileVassalCommandFactoryTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommand" should "include non-leader vassals" in {
|
||||
|
||||
+5
-35
@@ -53,13 +53,7 @@ class AvailableFeastCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
AvailableFeastCommandFactory.availableCommand(
|
||||
@@ -105,13 +99,7 @@ class AvailableFeastCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
inside(AvailableFeastCommandFactory.availableCommand(gameState, 9, 5).get) {
|
||||
@@ -156,13 +144,7 @@ class AvailableFeastCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
inside(AvailableFeastCommandFactory.availableCommand(gameState, 9, 5).get) {
|
||||
@@ -211,13 +193,7 @@ class AvailableFeastCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
inside(AvailableFeastCommandFactory.availableCommand(gameState, 9, 5).get) {
|
||||
@@ -266,13 +242,7 @@ class AvailableFeastCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
inside(AvailableFeastCommandFactory.availableCommand(gameState, 9, 5).get) {
|
||||
|
||||
+1
-7
@@ -97,13 +97,7 @@ class AvailableHandleCapturedHeroCommandFactoryTest
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameStateWithOne: GameState = inside(gameStateWithTwo.provinces(provinceId)) {
|
||||
|
||||
+1
-7
@@ -67,13 +67,7 @@ class AvailableHandleRiotCrackDownCommandFactoryTest extends AnyFlatSpec with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit =
|
||||
|
||||
+1
-7
@@ -61,13 +61,7 @@ class AvailableHandleRiotDoNothingCommandFactoryTest extends AnyFlatSpec with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {}
|
||||
|
||||
+1
-7
@@ -53,13 +53,7 @@ class AvailableHandleRiotGiveCommandFactoryTest extends AnyFlatSpec with BeforeA
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -84,13 +84,7 @@ class AvailableHeroGiftCommandFactoryTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val brother1 = HeroC(
|
||||
|
||||
+1
-7
@@ -88,13 +88,7 @@ class AvailableImproveCommandsFactoryTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -116,13 +116,7 @@ class AvailableIssueOrdersCommandFactoryTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommands" should "return nothing if the province leader is not a faction leader" in {
|
||||
|
||||
+1
-7
@@ -112,13 +112,7 @@ class AvailableManagePrisonerCommandsFactoryTest extends AnyFlatSpec with Before
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def getManagePrisonersCommand(gs: GameState): ManagePrisonersAvailable =
|
||||
|
||||
+1
-7
@@ -56,13 +56,7 @@ class AvailableMarchCommandFactoryTest extends AnyFlatSpec with BeforeAndAfterEa
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def getMarchCommand(
|
||||
|
||||
+1
-7
@@ -93,13 +93,7 @@ class AvailableOrganizeTroopsCommandsFactoryTest extends AnyFlatSpec with Before
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"availableCommand" should "include all battalions, below cap or not, if stats are high enough" in {
|
||||
|
||||
+1
-7
@@ -84,13 +84,7 @@ class AvailablePleaseRecruitMeCommandFactoryTest extends AnyFlatSpec with Before
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val baseProvinces: Map[Int, ProvinceC] = Map(actingProvince.id -> actingProvince)
|
||||
|
||||
+1
-7
@@ -68,13 +68,7 @@ class AvailableReconCommandFactoryTest extends AnyFlatSpec with BeforeAndAfterEa
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -90,13 +90,7 @@ class AvailableRecruitHeroesCommandFactoryTest extends AnyFlatSpec with Matchers
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -82,13 +82,7 @@ class AvailableResolveBreakAllianceCommandFactoryTest extends AnyFlatSpec with M
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 12345L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {}
|
||||
|
||||
+1
-7
@@ -135,13 +135,7 @@ class AvailableResolveRansomOfferCommandFactoryTest extends AnyFlatSpec with Mat
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -68,13 +68,7 @@ class AvailableResolveTributeCommandsFactoryTest extends AnyFlatSpec with Matche
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def makeHostileArmyGroup(
|
||||
|
||||
+1
-7
@@ -32,13 +32,7 @@ class AvailableRestCommandsFactoryTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
val command = AvailableRestCommandsFactory.availableCommand(gameState, 12, 6)
|
||||
|
||||
+1
-7
@@ -50,13 +50,7 @@ class AvailableReturnCommandsFactoryTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -72,13 +72,7 @@ class AvailableSendSuppliesCommandFactoryTest extends AnyFlatSpec with BeforeAnd
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState: GameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -100,13 +100,7 @@ class AvailableStartEpidemicCommandFactoryTest extends AnyFlatSpec with BeforeAn
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -95,13 +95,7 @@ class AvailableSwearBrotherhoodCommandFactoryTest extends AnyFlatSpec with Match
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -52,13 +52,7 @@ class AvailableTradeCommandFactoryTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -94,13 +94,7 @@ class AvailableTrainCommandsFactoryTest extends AnyFlatSpec with BeforeAndAfterE
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit =
|
||||
|
||||
+1
-7
@@ -56,13 +56,7 @@ class AvailableTravelCommandsFactoryTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector(),
|
||||
randomSeed = 0,
|
||||
chronicleEntries = Vector(),
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -99,13 +99,7 @@ class EndBattleAftermathPhaseActionTest extends AnyFlatSpec with Matchers with B
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = randomSeed,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
behavior of "EndBattleAftermathPhaseActionTest"
|
||||
|
||||
+1
-7
@@ -118,13 +118,7 @@ class EndDefenseDecisionPhaseActionTest extends AnyFlatSpec with Matchers {
|
||||
victor = None,
|
||||
battalionTypes = Vector.empty,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"execute" should "end the phase and proceed to TRUCE_TURN_BACK" in {
|
||||
|
||||
+1
-7
@@ -39,13 +39,7 @@ class EndDiplomacyResolutionPhaseActionTest extends AnyFlatSpec with Matchers wi
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 12345L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val applier = ActionResultApplierImpl(Some(RuntimeValidator))
|
||||
|
||||
+1
-7
@@ -73,13 +73,7 @@ class EndHandleRiotsPhaseActionTest extends AnyFlatSpec with BeforeAndAfterEach
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -144,13 +144,7 @@ class EndPlayerCommandsPhaseActionTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = randomSeed,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def gameState: GameState = makeGameState()
|
||||
|
||||
+1
-7
@@ -49,13 +49,7 @@ class EndVassalCommandsPhaseActionTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0xfeedfaceL,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def endVassalResult(results: Vector[?]): ActionResultC =
|
||||
|
||||
+1
-7
@@ -62,13 +62,7 @@ class FreeHeroBackstoryVisibilityRecoveryTest extends AnyFlatSpec with MockFacto
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 12345L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val heroWithBackstory: Map[Int, HeroT] = Map(
|
||||
|
||||
+1
-7
@@ -106,13 +106,7 @@ class NewRoundActionTest
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
// Helper to run NewRoundAction and return Scala ActionResults
|
||||
|
||||
@@ -131,13 +131,7 @@ class NewYearActionTest extends AnyFlatSpec with Matchers with BeforeAndAfterEac
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def gs: GameState = baseGameState
|
||||
|
||||
+1
-7
@@ -89,13 +89,7 @@ class PerformFoodConsumptionPhaseActionTest extends AnyFlatSpec with Matchers wi
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {}
|
||||
|
||||
+1
-7
@@ -75,13 +75,7 @@ class PerformForcedTurnBackActionTest extends AnyFlatSpec with Matchers with Bef
|
||||
victor = None,
|
||||
battalionTypes = Vector.empty,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gsWithoutBlizzard = gsWithBlizzard.copy(
|
||||
|
||||
+1
-7
@@ -73,13 +73,7 @@ class PerformHeroDeparturesActionTest extends AnyFlatSpec with Matchers with Bef
|
||||
victor = None,
|
||||
battalionTypes = Vector.empty,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -63,13 +63,7 @@ class PerformHostileArmySetupActionTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"any setup" should "move to the next round phase" in {
|
||||
|
||||
+1
-7
@@ -161,13 +161,7 @@ class PerformProvinceEventsActionTest extends AnyFlatSpec with BeforeAndAfterEac
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = randomSeed,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"changedProvince" should "remove beasts if we're past their end date" in {
|
||||
|
||||
+1
-7
@@ -115,13 +115,7 @@ class PerformProvinceMoveResolutionActionTest extends AnyFlatSpec with Matchers
|
||||
victor = None,
|
||||
battalionTypes = Vector.empty,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def getResults(gs: GameState) =
|
||||
|
||||
+1
-7
@@ -65,13 +65,7 @@ class PerformReconResolutionActionTest extends AnyFlatSpec with BeforeAndAfterEa
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val baseProvinces: Map[Int, ProvinceC] = Map(
|
||||
|
||||
+1
-7
@@ -79,13 +79,7 @@ class PerformUnaffiliatedHeroesActionTest extends AnyFlatSpec with Matchers with
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 12345L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
override def beforeEach(): Unit = {
|
||||
|
||||
+1
-7
@@ -266,13 +266,7 @@ class PerformVassalCommandsPhaseActionTest extends AnyFlatSpec with Matchers wit
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val marchGameState = baseGameState(
|
||||
|
||||
+1
-7
@@ -43,13 +43,7 @@ class PrisonerExchangeActionTest extends AnyFlatSpec with Matchers {
|
||||
victor = None,
|
||||
battalionTypes = Vector.empty,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def prisoner(heroId: Int, lastFactionId: Int): UnaffiliatedHeroC =
|
||||
|
||||
+1
-7
@@ -205,13 +205,7 @@ class ProvinceConqueredActionTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val currentDate = Date(year = 2024, month = Date.Month.July)
|
||||
|
||||
+1
-7
@@ -503,13 +503,7 @@ class ResolveBattleActionTest extends AnyFlatSpec with MockFactory with Matchers
|
||||
victor = None,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val startingGameStateWithAllies = startingGameState.copy(
|
||||
|
||||
+1
-7
@@ -114,13 +114,7 @@ class TruceTurnBackPhaseActionTest extends AnyFlatSpec with Matchers {
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"results" should "advance to the next phase" in {
|
||||
|
||||
+1
-7
@@ -109,13 +109,7 @@ class CapturedHeroMessagePromptGeneratorTest extends AnyFlatSpec with Matchers w
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"execute message prompt" should "return an appropriate execute message" in {
|
||||
|
||||
+1
-7
@@ -82,13 +82,7 @@ class ChronicleUpdatePromptGeneratorTest extends AnyFlatSpec with BeforeAndAfter
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val mockClientTextStore = mock[ClientTextStore]
|
||||
|
||||
+1
-7
@@ -101,13 +101,7 @@ class DivineMessagePromptGeneratorTest extends AnyFlatSpec with Matchers with Mo
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"generate" should "tell the LLM not to describe exile prisoner quests as releases" in {
|
||||
|
||||
+1
-7
@@ -58,13 +58,7 @@ class GeneratorUtilitiesTest extends AnyFlatSpec with Matchers with BeforeAndAft
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
val clientTextStore = mock[ClientTextStore]
|
||||
GeneratorUtilities
|
||||
|
||||
+1
-7
@@ -113,13 +113,7 @@ class QuestEndedGeneratorUtilitiesTest extends AnyFlatSpec with Matchers with Mo
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private def mockTextStore: ClientTextStore = {
|
||||
|
||||
@@ -226,13 +226,7 @@ class GameStateViewFilterTest extends AnyFlatSpec with BeforeAndAfterEach with M
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"filteredGameState" should "return all provinces when there is no factionId" in {
|
||||
|
||||
@@ -438,13 +438,7 @@ class ProvinceUtilsTest extends AnyFlatSpec with Matchers with BeforeAndAfterEac
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"isFocusProvince" should "return true when the ruling faction has this province as its focus" in {
|
||||
|
||||
+1
-7
@@ -61,13 +61,7 @@ class AllianceOfferCommandSelectorTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+1
-7
@@ -89,13 +89,7 @@ class AlmsCommandSelectorTest extends AnyFlatSpec with Matchers with BeforeAndAf
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"chosenAlmsCommand" should "give 1000 food if we need 10 support in December" in {
|
||||
|
||||
+1
-7
@@ -181,13 +181,7 @@ class AttackCommandChooserTest extends AnyFlatSpec with Matchers with BeforeAndA
|
||||
victor = None,
|
||||
randomSeed = 12345L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val availableBattalionTypes = Vector(
|
||||
|
||||
+1
-7
@@ -97,13 +97,7 @@ class AttackDecisionCommandChooserTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val defaultSupplies = Supplies(gold = 0, food = 0)
|
||||
|
||||
+1
-7
@@ -184,13 +184,7 @@ class CommandChoiceHelpersTest extends AnyFlatSpec with Matchers with BeforeAndA
|
||||
battalionTypes = battalionTypes,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
behavior of "CommandChoiceHelpersTest"
|
||||
|
||||
+1
-7
@@ -126,13 +126,7 @@ class ExpandCommandSelectorTest extends AnyFlatSpec with Matchers with BeforeAnd
|
||||
battalionTypes = battalionTypesVector,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
"heroIdsToMarch" should "never send a faction leader by themselves" in
|
||||
|
||||
+1
-7
@@ -83,13 +83,7 @@ class FulfillQuestsCommandSelectorTest extends AnyFlatSpec with Matchers with Be
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val gameState = makeGameState(
|
||||
|
||||
+1
-7
@@ -69,13 +69,7 @@ class ImproveCommandSelectorTest extends AnyFlatSpec with Matchers with BeforeAn
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
|
||||
private val improveCommand = ImproveAvailable(
|
||||
|
||||
+1
-7
@@ -61,13 +61,7 @@ class TruceOfferCommandSelectorTest extends AnyFlatSpec with Matchers with Befor
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+1
-7
@@ -93,13 +93,7 @@ class AllianceQuestCommandChooserTest extends AnyFlatSpec with BeforeAndAfterEac
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 0L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+1
-7
@@ -101,13 +101,7 @@ class AlmsAcrossRealmQuestCommandChooserTest extends AnyFlatSpec with BeforeAndA
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+1
-7
@@ -81,13 +81,7 @@ class AlmsToProvinceQuestCommandChooserTest extends AnyFlatSpec with BeforeAndAf
|
||||
battalionTypes = Vector.empty,
|
||||
randomSeed = 1L,
|
||||
chronicleEntries = Vector.empty,
|
||||
gameType = GameType.Normal,
|
||||
eagleMap = net.eagle0.eagle.model.state.game_state.EagleMapInfo(
|
||||
mapWidth = 0,
|
||||
mapHeight = 0,
|
||||
sha256 = "",
|
||||
centroidsSha256 = ""
|
||||
)
|
||||
gameType = GameType.Normal
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user