@gamepark/rules-api 7.0.0-beta.0 → 7.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Action.js +1 -2
- package/dist/Bot.js +15 -37
- package/dist/Bot.js.map +1 -1
- package/dist/Competitive.js +3 -8
- package/dist/Competitive.js.map +1 -1
- package/dist/Eliminations.js +2 -5
- package/dist/Eliminations.js.map +1 -1
- package/dist/GameSetup.js +1 -2
- package/dist/HiddenInformation.js +2 -5
- package/dist/HiddenInformation.js.map +1 -1
- package/dist/LocalMovePreview.js +1 -4
- package/dist/LocalMovePreview.js.map +1 -1
- package/dist/RandomMove.js +1 -2
- package/dist/Rules.js +49 -56
- package/dist/Rules.js.map +1 -1
- package/dist/SecretInformation.js +2 -5
- package/dist/SecretInformation.js.map +1 -1
- package/dist/TimeLimit.js +1 -4
- package/dist/TimeLimit.js.map +1 -1
- package/dist/Undo.js +2 -5
- package/dist/Undo.js.map +1 -1
- package/dist/UnpredictableMove.js +1 -5
- package/dist/UnpredictableMove.js.map +1 -1
- package/dist/index.js +16 -32
- package/dist/index.js.map +1 -1
- package/dist/material/HiddenMaterialRules.js +125 -180
- package/dist/material/HiddenMaterialRules.js.map +1 -1
- package/dist/material/MaterialGame.js +1 -2
- package/dist/material/MaterialGameSetup.js +52 -70
- package/dist/material/MaterialGameSetup.js.map +1 -1
- package/dist/material/MaterialRules.js +186 -250
- package/dist/material/MaterialRules.js.map +1 -1
- package/dist/material/SecretMaterialRules.js +9 -35
- package/dist/material/SecretMaterialRules.js.map +1 -1
- package/dist/material/index.js +11 -27
- package/dist/material/index.js.map +1 -1
- package/dist/material/items/Material.js +177 -262
- package/dist/material/items/Material.js.map +1 -1
- package/dist/material/items/MaterialDeck.js +10 -36
- package/dist/material/items/MaterialDeck.js.map +1 -1
- package/dist/material/items/MaterialItem.js +1 -2
- package/dist/material/items/MaterialMoney.js +89 -141
- package/dist/material/items/MaterialMoney.js.map +1 -1
- package/dist/material/items/MaterialMutator.js +108 -145
- package/dist/material/items/MaterialMutator.js.map +1 -1
- package/dist/material/items/index.js +5 -21
- package/dist/material/items/index.js.map +1 -1
- package/dist/material/location/Location.js +1 -14
- package/dist/material/location/Location.js.map +1 -1
- package/dist/material/location/LocationBuilder.js +26 -41
- package/dist/material/location/LocationBuilder.js.map +1 -1
- package/dist/material/location/index.js +3 -19
- package/dist/material/location/index.js.map +1 -1
- package/dist/material/location/strategy/FillGapStrategy.js +9 -16
- package/dist/material/location/strategy/FillGapStrategy.js.map +1 -1
- package/dist/material/location/strategy/LocationStrategy.js +1 -2
- package/dist/material/location/strategy/PositiveSequenceStrategy.js +26 -35
- package/dist/material/location/strategy/PositiveSequenceStrategy.js.map +1 -1
- package/dist/material/location/strategy/StackingStrategy.js +15 -22
- package/dist/material/location/strategy/StackingStrategy.js.map +1 -1
- package/dist/material/location/strategy/index.js +5 -23
- package/dist/material/location/strategy/index.js.map +1 -1
- package/dist/material/memory/GameMemory.js +10 -14
- package/dist/material/memory/GameMemory.js.map +1 -1
- package/dist/material/memory/PlayerMemory.js +13 -18
- package/dist/material/memory/PlayerMemory.js.map +1 -1
- package/dist/material/memory/index.js +2 -18
- package/dist/material/memory/index.js.map +1 -1
- package/dist/material/moves/CustomMove.js +4 -9
- package/dist/material/moves/CustomMove.js.map +1 -1
- package/dist/material/moves/MaterialMove.js +1 -2
- package/dist/material/moves/MaterialMoveBuilder.js +16 -32
- package/dist/material/moves/MaterialMoveBuilder.js.map +1 -1
- package/dist/material/moves/MoveKind.js +2 -5
- package/dist/material/moves/MoveKind.js.map +1 -1
- package/dist/material/moves/index.js +7 -23
- package/dist/material/moves/index.js.map +1 -1
- package/dist/material/moves/items/CreateItem.js +6 -12
- package/dist/material/moves/items/CreateItem.js.map +1 -1
- package/dist/material/moves/items/CreateItemsAtOnce.js +6 -12
- package/dist/material/moves/items/CreateItemsAtOnce.js.map +1 -1
- package/dist/material/moves/items/DeleteItem.js +6 -12
- package/dist/material/moves/items/DeleteItem.js.map +1 -1
- package/dist/material/moves/items/DeleteItemsAtOnce.js +6 -12
- package/dist/material/moves/items/DeleteItemsAtOnce.js.map +1 -1
- package/dist/material/moves/items/ItemMove.js +1 -2
- package/dist/material/moves/items/ItemMoveType.js +2 -5
- package/dist/material/moves/items/ItemMoveType.js.map +1 -1
- package/dist/material/moves/items/MoveItem.js +6 -12
- package/dist/material/moves/items/MoveItem.js.map +1 -1
- package/dist/material/moves/items/MoveItemsAtOnce.js +6 -12
- package/dist/material/moves/items/MoveItemsAtOnce.js.map +1 -1
- package/dist/material/moves/items/RollItem.js +6 -12
- package/dist/material/moves/items/RollItem.js.map +1 -1
- package/dist/material/moves/items/SelectItem.js +6 -12
- package/dist/material/moves/items/SelectItem.js.map +1 -1
- package/dist/material/moves/items/Shuffle.js +7 -14
- package/dist/material/moves/items/Shuffle.js.map +1 -1
- package/dist/material/moves/items/index.js +11 -27
- package/dist/material/moves/items/index.js.map +1 -1
- package/dist/material/moves/local/CloseTutorialPopup.js +4 -7
- package/dist/material/moves/local/CloseTutorialPopup.js.map +1 -1
- package/dist/material/moves/local/DisplayHelp.js +2 -5
- package/dist/material/moves/local/DisplayHelp.js.map +1 -1
- package/dist/material/moves/local/DropItem.js +1 -2
- package/dist/material/moves/local/LocalMove.js +2 -5
- package/dist/material/moves/local/LocalMove.js.map +1 -1
- package/dist/material/moves/local/SetTutorialStep.js +4 -7
- package/dist/material/moves/local/SetTutorialStep.js.map +1 -1
- package/dist/material/moves/local/index.js +5 -21
- package/dist/material/moves/local/index.js.map +1 -1
- package/dist/material/moves/rules/EndGame.js +4 -7
- package/dist/material/moves/rules/EndGame.js.map +1 -1
- package/dist/material/moves/rules/EndPlayerTurn.js +4 -7
- package/dist/material/moves/rules/EndPlayerTurn.js.map +1 -1
- package/dist/material/moves/rules/RuleMove.js +3 -7
- package/dist/material/moves/rules/RuleMove.js.map +1 -1
- package/dist/material/moves/rules/StartPlayerTurn.js +4 -7
- package/dist/material/moves/rules/StartPlayerTurn.js.map +1 -1
- package/dist/material/moves/rules/StartRule.js +4 -7
- package/dist/material/moves/rules/StartRule.js.map +1 -1
- package/dist/material/moves/rules/StartSimultaneousRule.js +4 -7
- package/dist/material/moves/rules/StartSimultaneousRule.js.map +1 -1
- package/dist/material/moves/rules/index.js +6 -22
- package/dist/material/moves/rules/index.js.map +1 -1
- package/dist/material/rules/MaterialRulesPart.js +38 -63
- package/dist/material/rules/MaterialRulesPart.js.map +1 -1
- package/dist/material/rules/PlayerTurnRule.js +20 -52
- package/dist/material/rules/PlayerTurnRule.js.map +1 -1
- package/dist/material/rules/RuleStep.js +1 -2
- package/dist/material/rules/SimultaneousRule.js +19 -51
- package/dist/material/rules/SimultaneousRule.js.map +1 -1
- package/dist/material/rules/index.js +4 -20
- package/dist/material/rules/index.js.map +1 -1
- package/dist/material/tutorial/TutorialState.js +1 -2
- package/dist/material/tutorial/index.js +1 -17
- package/dist/material/tutorial/index.js.map +1 -1
- package/dist/options/EnumArrayOption.js +3 -6
- package/dist/options/EnumArrayOption.js.map +1 -1
- package/dist/options/EnumOption.js +1 -4
- package/dist/options/EnumOption.js.map +1 -1
- package/dist/options/Option.js +1 -2
- package/dist/options/OptionSpecOf.js +1 -2
- package/dist/options/OptionsSpec.js +1 -2
- package/dist/options/OptionsValidationError.js +6 -28
- package/dist/options/OptionsValidationError.js.map +1 -1
- package/dist/options/PlayerEnumOption.js +19 -29
- package/dist/options/PlayerEnumOption.js.map +1 -1
- package/dist/options/PlayersOptionsSpec.js +1 -2
- package/dist/options/WithIdOption.js +1 -2
- package/dist/options/WithPlayerOptionsSpec.js +1 -4
- package/dist/options/WithPlayerOptionsSpec.js.map +1 -1
- package/dist/options/WithPlayersOptions.js +1 -2
- package/dist/options/index.js +12 -28
- package/dist/options/index.js.map +1 -1
- package/dist/options/isWithPlayerIdOptions.js +3 -6
- package/dist/options/isWithPlayerIdOptions.js.map +1 -1
- package/dist/utils/action-view.util.js +18 -25
- package/dist/utils/action-view.util.js.map +1 -1
- package/dist/utils/action.util.js +11 -16
- package/dist/utils/action.util.js.map +1 -1
- package/dist/utils/adjacent-groups.util.js +33 -41
- package/dist/utils/adjacent-groups.util.js.map +1 -1
- package/dist/utils/automatic-moves.util.js +10 -15
- package/dist/utils/automatic-moves.util.js.map +1 -1
- package/dist/utils/enum.util.js +7 -13
- package/dist/utils/enum.util.js.map +1 -1
- package/dist/utils/game-view.util.js +5 -8
- package/dist/utils/game-view.util.js.map +1 -1
- package/dist/utils/grid.hex.util.js +36 -88
- package/dist/utils/grid.hex.util.js.map +1 -1
- package/dist/utils/grid.squares.util.js +8 -19
- package/dist/utils/grid.squares.util.js.map +1 -1
- package/dist/utils/grid.util.js +1 -5
- package/dist/utils/grid.util.js.map +1 -1
- package/dist/utils/index.js +16 -32
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/listing.util.js +8 -13
- package/dist/utils/listing.util.js.map +1 -1
- package/dist/utils/loops.util.js +3 -6
- package/dist/utils/loops.util.js.map +1 -1
- package/dist/utils/money.util.js +54 -73
- package/dist/utils/money.util.js.map +1 -1
- package/dist/utils/neighbors.util.js +6 -10
- package/dist/utils/neighbors.util.js.map +1 -1
- package/dist/utils/polyhex.util.js +36 -56
- package/dist/utils/polyhex.util.js.map +1 -1
- package/dist/utils/random.util.js +2 -5
- package/dist/utils/random.util.js.map +1 -1
- package/dist/utils/rank.util.js +9 -13
- package/dist/utils/rank.util.js.map +1 -1
- package/package.json +43 -37
- package/dist/ApplyAutomaticMoves.d.ts +0 -2
- package/dist/ApplyAutomaticMoves.js +0 -25
- package/dist/ApplyAutomaticMoves.js.map +0 -1
- package/dist/DefaultGameSetup.d.ts +0 -7
- package/dist/DefaultGameSetup.js +0 -15
- package/dist/DefaultGameSetup.js.map +0 -1
- package/dist/Dummy.d.ts +0 -7
- package/dist/Dummy.js +0 -27
- package/dist/Dummy.js.map +0 -1
- package/dist/GameSetupCreator.d.ts +0 -4
- package/dist/GameSetupCreator.js +0 -3
- package/dist/GameSetupCreator.js.map +0 -1
- package/dist/IncompleteInformation.d.ts +0 -14
- package/dist/IncompleteInformation.js +0 -38
- package/dist/IncompleteInformation.js.map +0 -1
- package/dist/LoopWithFuse.d.ts +0 -4
- package/dist/LoopWithFuse.js +0 -15
- package/dist/LoopWithFuse.js.map +0 -1
- package/dist/Robot.d.ts +0 -1
- package/dist/Robot.js +0 -3
- package/dist/Robot.js.map +0 -1
- package/dist/RulesCreator.d.ts +0 -7
- package/dist/RulesCreator.js +0 -3
- package/dist/RulesCreator.js.map +0 -1
- package/dist/material/location/strategy/StakingStrategy.d.ts +0 -12
- package/dist/material/location/strategy/StakingStrategy.js +0 -32
- package/dist/material/location/strategy/StakingStrategy.js.map +0 -1
- package/dist/material/moves/items/ItemMovesBuilder.d.ts +0 -8
- package/dist/material/moves/items/ItemMovesBuilder.js +0 -34
- package/dist/material/moves/items/ItemMovesBuilder.js.map +0 -1
- package/dist/material/rules/MaterialMoveBuilder.d.ts +0 -9
- package/dist/material/rules/MaterialMoveBuilder.js +0 -28
- package/dist/material/rules/MaterialMoveBuilder.js.map +0 -1
- package/dist/material/rules/MaterialRulesMovesBuilder.d.ts +0 -12
- package/dist/material/rules/MaterialRulesMovesBuilder.js +0 -36
- package/dist/material/rules/MaterialRulesMovesBuilder.js.map +0 -1
- package/dist/setup/DefaultGameSetup.d.ts +0 -7
- package/dist/setup/DefaultGameSetup.js +0 -15
- package/dist/setup/DefaultGameSetup.js.map +0 -1
- package/dist/setup/GameSetup.d.ts +0 -3
- package/dist/setup/GameSetup.js +0 -3
- package/dist/setup/GameSetup.js.map +0 -1
- package/dist/setup/GameSetupCreator.d.ts +0 -4
- package/dist/setup/GameSetupCreator.js +0 -3
- package/dist/setup/GameSetupCreator.js.map +0 -1
- package/dist/setup/index.d.ts +0 -2
- package/dist/setup/index.js +0 -19
- package/dist/setup/index.js.map +0 -1
- package/dist/utils/EnumUtils.d.ts +0 -1
- package/dist/utils/EnumUtils.js +0 -8
- package/dist/utils/EnumUtils.js.map +0 -1
- package/dist/utils/coordinates.util.d.ts +0 -5
- package/dist/utils/coordinates.util.js +0 -16
- package/dist/utils/coordinates.util.js.map +0 -1
- package/dist/utils/isDeadEndMove.util.d.ts +0 -2
- package/dist/utils/isDeadEndMove.util.js +0 -19
- package/dist/utils/isDeadEndMove.util.js.map +0 -1
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./items"), exports);
|
|
18
|
-
__exportStar(require("./local"), exports);
|
|
19
|
-
__exportStar(require("./rules"), exports);
|
|
20
|
-
__exportStar(require("./CustomMove"), exports);
|
|
21
|
-
__exportStar(require("./MaterialMove"), exports);
|
|
22
|
-
__exportStar(require("./MaterialMoveBuilder"), exports);
|
|
23
|
-
__exportStar(require("./MoveKind"), exports);
|
|
1
|
+
export * from './items';
|
|
2
|
+
export * from './local';
|
|
3
|
+
export * from './rules';
|
|
4
|
+
export * from './CustomMove';
|
|
5
|
+
export * from './MaterialMove';
|
|
6
|
+
export * from './MaterialMoveBuilder';
|
|
7
|
+
export * from './MoveKind';
|
|
24
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/material/moves/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/material/moves/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isCreateItem = isCreateItem;
|
|
4
|
-
exports.isCreateItemType = isCreateItemType;
|
|
5
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
6
|
-
var MoveKind_1 = require("../MoveKind");
|
|
1
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
2
|
+
import { MoveKind } from '../MoveKind';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link CreateItem} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link CreateItem}
|
|
11
7
|
*/
|
|
12
|
-
function isCreateItem(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isCreateItem(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Create;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link CreateItem} move for specific item types.
|
|
17
13
|
* @param type Item type to test
|
|
18
14
|
* @returns a type guard similar as {@link isCreateItem} but that also verify the item type.
|
|
19
15
|
*/
|
|
20
|
-
function isCreateItemType(type) {
|
|
21
|
-
return
|
|
22
|
-
return isCreateItem(move) && move.itemType === type;
|
|
23
|
-
};
|
|
16
|
+
export function isCreateItemType(type) {
|
|
17
|
+
return (move) => isCreateItem(move) && move.itemType === type;
|
|
24
18
|
}
|
|
25
19
|
//# sourceMappingURL=CreateItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/CreateItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/CreateItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUtC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAuD,IAA2B;IAC5G,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,MAAM,CAAA;AAC7E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAO;IAEP,OAAO,CAAC,IAA2B,EAA+B,EAAE,CAClE,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AAChD,CAAC"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isCreateItemsAtOnce = isCreateItemsAtOnce;
|
|
4
|
-
exports.isCreateItemTypeAtOnce = isCreateItemTypeAtOnce;
|
|
5
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
6
|
-
var MoveKind_1 = require("../MoveKind");
|
|
1
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
2
|
+
import { MoveKind } from '../MoveKind';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link CreateItemsAtOnce} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link CreateItemsAtOnce}
|
|
11
7
|
*/
|
|
12
|
-
function isCreateItemsAtOnce(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isCreateItemsAtOnce(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.CreateAtOnce;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link CreateItemsAtOnce} move for specific item types.
|
|
17
13
|
* @param type Item type to test
|
|
18
14
|
* @returns a type guard similar as {@link isCreateItemsAtOnce} but that also verify the item type.
|
|
19
15
|
*/
|
|
20
|
-
function isCreateItemTypeAtOnce(type) {
|
|
21
|
-
return
|
|
22
|
-
return isCreateItemsAtOnce(move) && move.itemType === type;
|
|
23
|
-
};
|
|
16
|
+
export function isCreateItemTypeAtOnce(type) {
|
|
17
|
+
return (move) => isCreateItemsAtOnce(move) && move.itemType === type;
|
|
24
18
|
}
|
|
25
19
|
//# sourceMappingURL=CreateItemsAtOnce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/CreateItemsAtOnce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/CreateItemsAtOnce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAWtC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAuD,IAA2B;IACnH,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,YAAY,CAAA;AACnF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,IAAO;IAEP,OAAO,CAAC,IAA2B,EAAsC,EAAE,CACzE,mBAAmB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AACvD,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isDeleteItem = isDeleteItem;
|
|
4
|
-
exports.isDeleteItemType = isDeleteItemType;
|
|
5
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
6
|
-
var MoveKind_1 = require("../MoveKind");
|
|
1
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
2
|
+
import { MoveKind } from '../MoveKind';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link DeleteItem} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link DeleteItem}
|
|
11
7
|
*/
|
|
12
|
-
function isDeleteItem(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isDeleteItem(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Delete;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link DeleteItem} move for specific item types.
|
|
@@ -18,9 +14,7 @@ function isDeleteItem(move) {
|
|
|
18
14
|
* @param index Optional itemIndex to test along the item type
|
|
19
15
|
* @returns a type guard similar as {@link isDeleteItem} but that also verify the item type.
|
|
20
16
|
*/
|
|
21
|
-
function isDeleteItemType(type, index) {
|
|
22
|
-
return
|
|
23
|
-
return isDeleteItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
24
|
-
};
|
|
17
|
+
export function isDeleteItemType(type, index) {
|
|
18
|
+
return (move) => isDeleteItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
25
19
|
}
|
|
26
20
|
//# sourceMappingURL=DeleteItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/DeleteItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/DeleteItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAetC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAuD,IAA2B;IAC5G,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,MAAM,CAAA;AAC7E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAO,EAAE,KAAc;IAEvB,OAAO,CAAC,IAA2B,EAAyB,EAAE,CAC5D,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAA;AACrG,CAAC"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isDeleteItemsAtOnce = isDeleteItemsAtOnce;
|
|
4
|
-
exports.isDeleteItemTypeAtOnce = isDeleteItemTypeAtOnce;
|
|
5
|
-
var MoveKind_1 = require("../MoveKind");
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link DeleteItemsAtOnce} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link DeleteItemsAtOnce}
|
|
11
7
|
*/
|
|
12
|
-
function isDeleteItemsAtOnce(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isDeleteItemsAtOnce(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.DeleteAtOnce;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link DeleteItemsAtOnce} move for specific item types.
|
|
17
13
|
* @param type Item type to test
|
|
18
14
|
* @returns a type guard similar as {@link isDeleteItemsAtOnce} but that also verify the item type.
|
|
19
15
|
*/
|
|
20
|
-
function isDeleteItemTypeAtOnce(type) {
|
|
21
|
-
return
|
|
22
|
-
return isDeleteItemsAtOnce(move) && move.itemType === type;
|
|
23
|
-
};
|
|
16
|
+
export function isDeleteItemTypeAtOnce(type) {
|
|
17
|
+
return (move) => isDeleteItemsAtOnce(move) && move.itemType === type;
|
|
24
18
|
}
|
|
25
19
|
//# sourceMappingURL=DeleteItemsAtOnce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/DeleteItemsAtOnce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/DeleteItemsAtOnce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAc7C;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAuD,IAA2B;IACnH,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,YAAY,CAAA;AACnF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,IAAO;IAEP,OAAO,CAAC,IAA2B,EAAgC,EAAE,CACnE,mBAAmB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AACvD,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ItemMoveType = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* The different types of {@link ItemMove}
|
|
6
3
|
*/
|
|
7
|
-
var ItemMoveType;
|
|
4
|
+
export var ItemMoveType;
|
|
8
5
|
(function (ItemMoveType) {
|
|
9
6
|
ItemMoveType[ItemMoveType["Create"] = 0] = "Create";
|
|
10
7
|
ItemMoveType[ItemMoveType["Move"] = 1] = "Move";
|
|
@@ -15,5 +12,5 @@ var ItemMoveType;
|
|
|
15
12
|
ItemMoveType[ItemMoveType["MoveAtOnce"] = 6] = "MoveAtOnce";
|
|
16
13
|
ItemMoveType[ItemMoveType["CreateAtOnce"] = 7] = "CreateAtOnce";
|
|
17
14
|
ItemMoveType[ItemMoveType["DeleteAtOnce"] = 8] = "DeleteAtOnce";
|
|
18
|
-
})(ItemMoveType || (
|
|
15
|
+
})(ItemMoveType || (ItemMoveType = {}));
|
|
19
16
|
//# sourceMappingURL=ItemMoveType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemMoveType.js","sourceRoot":"","sources":["../../../../src/material/moves/items/ItemMoveType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ItemMoveType.js","sourceRoot":"","sources":["../../../../src/material/moves/items/ItemMoveType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,mDAAM,CAAA;IAAE,+CAAI,CAAA;IAAE,qDAAO,CAAA;IAAE,mDAAM,CAAA;IAAE,+CAAI,CAAA;IAAE,mDAAM,CAAA;IAAE,2DAAU,CAAA;IAAE,+DAAY,CAAA;IAAE,+DAAY,CAAA;AACrF,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isMoveItem = isMoveItem;
|
|
4
|
-
exports.isMoveItemType = isMoveItemType;
|
|
5
|
-
var MoveKind_1 = require("../MoveKind");
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link MoveItem} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link MoveItem}
|
|
11
7
|
*/
|
|
12
|
-
function isMoveItem(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isMoveItem(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Move;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link MoveItem} move for specific item types.
|
|
@@ -18,9 +14,7 @@ function isMoveItem(move) {
|
|
|
18
14
|
* @param index Optional itemIndex to test along the item type
|
|
19
15
|
* @returns a type guard similar as {@link isMoveItem} but that also verify the item type.
|
|
20
16
|
*/
|
|
21
|
-
function isMoveItemType(type, index) {
|
|
22
|
-
return
|
|
23
|
-
return isMoveItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
24
|
-
};
|
|
17
|
+
export function isMoveItemType(type, index) {
|
|
18
|
+
return (move) => isMoveItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
25
19
|
}
|
|
26
20
|
//# sourceMappingURL=MoveItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoveItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/MoveItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MoveItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/MoveItem.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAoB7C;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAuD,IAA2B;IAC1G,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,CAAA;AAC3E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAO,EAAE,KAAc;IAEvB,OAAO,CAAC,IAA2B,EAA6B,EAAE,CAChE,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAA;AACnG,CAAC"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isMoveItemsAtOnce = isMoveItemsAtOnce;
|
|
4
|
-
exports.isMoveItemTypeAtOnce = isMoveItemTypeAtOnce;
|
|
5
|
-
var MoveKind_1 = require("../MoveKind");
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link MoveItemsAtOnce} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link MoveItemsAtOnce}
|
|
11
7
|
*/
|
|
12
|
-
function isMoveItemsAtOnce(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isMoveItemsAtOnce(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.MoveAtOnce;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link MoveItemsAtOnce} move for specific item types.
|
|
17
13
|
* @param type Item type to test
|
|
18
14
|
* @returns a type guard similar as {@link isMoveItemsAtOnce} but that also verify the item type.
|
|
19
15
|
*/
|
|
20
|
-
function isMoveItemTypeAtOnce(type) {
|
|
21
|
-
return
|
|
22
|
-
return isMoveItemsAtOnce(move) && move.itemType === type;
|
|
23
|
-
};
|
|
16
|
+
export function isMoveItemTypeAtOnce(type) {
|
|
17
|
+
return (move) => isMoveItemsAtOnce(move) && move.itemType === type;
|
|
24
18
|
}
|
|
25
19
|
//# sourceMappingURL=MoveItemsAtOnce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoveItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/MoveItemsAtOnce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MoveItemsAtOnce.js","sourceRoot":"","sources":["../../../../src/material/moves/items/MoveItemsAtOnce.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAoB7C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAuD,IAA2B;IACjH,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,UAAU,CAAA;AACjF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAO;IAEP,OAAO,CAAC,IAA2B,EAAoC,EAAE,CACvE,iBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AACrD,CAAC"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isRoll = isRoll;
|
|
4
|
-
exports.isRollItemType = isRollItemType;
|
|
5
|
-
var MoveKind_1 = require("../MoveKind");
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link RollItem} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link RollItem}
|
|
11
7
|
*/
|
|
12
|
-
function isRoll(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isRoll(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Roll;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link RollItem} move for specific item types.
|
|
17
13
|
* @param type Item type to test
|
|
18
14
|
* @returns a type guard similar as {@link isRoll} but that also verify the item type.
|
|
19
15
|
*/
|
|
20
|
-
function isRollItemType(type) {
|
|
21
|
-
return
|
|
22
|
-
return isRoll(move) && move.itemType === type;
|
|
23
|
-
};
|
|
16
|
+
export function isRollItemType(type) {
|
|
17
|
+
return (move) => isRoll(move) && move.itemType === type;
|
|
24
18
|
}
|
|
25
19
|
//# sourceMappingURL=RollItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/RollItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RollItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/RollItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAiB7C;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAuD,IAA2B;IACtG,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,CAAA;AAC3E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAO;IAEP,OAAO,CAAC,IAA2B,EAA6B,EAAE,CAChE,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AAC1C,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isSelectItem = isSelectItem;
|
|
4
|
-
exports.isSelectItemType = isSelectItemType;
|
|
5
|
-
var MoveKind_1 = require("../MoveKind");
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
7
3
|
/**
|
|
8
4
|
* Type guard to test if a {@link MaterialMove} is a {@link SelectItem} move
|
|
9
5
|
* @param move Move to test
|
|
10
6
|
* @returns true if move is a {@link SelectItem}
|
|
11
7
|
*/
|
|
12
|
-
function isSelectItem(move) {
|
|
13
|
-
return move.kind ===
|
|
8
|
+
export function isSelectItem(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Select;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Function to get a type guard for a {@link SelectItem} move for specific item types.
|
|
@@ -18,9 +14,7 @@ function isSelectItem(move) {
|
|
|
18
14
|
* @param index Optional itemIndex to test along the item type
|
|
19
15
|
* @returns a type guard similar as {@link isSelectItem} but that also verify the item type.
|
|
20
16
|
*/
|
|
21
|
-
function isSelectItemType(type, index) {
|
|
22
|
-
return
|
|
23
|
-
return isSelectItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
24
|
-
};
|
|
17
|
+
export function isSelectItemType(type, index) {
|
|
18
|
+
return (move) => isSelectItem(move) && move.itemType === type && (index === undefined || move.itemIndex === index);
|
|
25
19
|
}
|
|
26
20
|
//# sourceMappingURL=SelectItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/SelectItem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectItem.js","sourceRoot":"","sources":["../../../../src/material/moves/items/SelectItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAkB7C;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAuD,IAA2B;IAC5G,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,MAAM,CAAA;AAC7E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAO,EAAE,KAAc;IAEvB,OAAO,CAAC,IAA2B,EAAyB,EAAE,CAC5D,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAA;AACrG,CAAC"}
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isShuffle = isShuffle;
|
|
4
|
-
exports.isShuffleItemType = isShuffleItemType;
|
|
5
|
-
exports.isShuffleRandomized = isShuffleRandomized;
|
|
6
|
-
var ItemMoveType_1 = require("./ItemMoveType");
|
|
7
|
-
var MoveKind_1 = require("../MoveKind");
|
|
1
|
+
import { ItemMoveType } from './ItemMoveType';
|
|
2
|
+
import { MoveKind } from '../MoveKind';
|
|
8
3
|
/**
|
|
9
4
|
* Type guard to test if a {@link MaterialMove} is a {@link Shuffle} move
|
|
10
5
|
* @param move Move to test
|
|
11
6
|
* @returns true if move is a {@link Shuffle}
|
|
12
7
|
*/
|
|
13
|
-
function isShuffle(move) {
|
|
14
|
-
return move.kind ===
|
|
8
|
+
export function isShuffle(move) {
|
|
9
|
+
return move.kind === MoveKind.ItemMove && move.type === ItemMoveType.Shuffle;
|
|
15
10
|
}
|
|
16
11
|
/**
|
|
17
12
|
* Function to get a type guard for a {@link Shuffle} move for specific item types.
|
|
18
13
|
* @param type Item type to test
|
|
19
14
|
* @returns a type guard similar as {@link isShuffle} but that also verify the item type.
|
|
20
15
|
*/
|
|
21
|
-
function isShuffleItemType(type) {
|
|
22
|
-
return
|
|
23
|
-
return isShuffle(move) && move.itemType === type;
|
|
24
|
-
};
|
|
16
|
+
export function isShuffleItemType(type) {
|
|
17
|
+
return (move) => isShuffle(move) && move.itemType === type;
|
|
25
18
|
}
|
|
26
19
|
/**
|
|
27
20
|
* Type guard to test if a {@link MaterialMove} is a {@link ShuffleRandomized} move
|
|
28
21
|
* @param move Move to test
|
|
29
22
|
* @returns true if move is a {@link ShuffleRandomized}
|
|
30
23
|
*/
|
|
31
|
-
function isShuffleRandomized(move) {
|
|
24
|
+
export function isShuffleRandomized(move) {
|
|
32
25
|
return isShuffle(move) && Array.isArray(move.newIndexes);
|
|
33
26
|
}
|
|
34
27
|
//# sourceMappingURL=Shuffle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shuffle.js","sourceRoot":"","sources":["../../../../src/material/moves/items/Shuffle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shuffle.js","sourceRoot":"","sources":["../../../../src/material/moves/items/Shuffle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAsBtC;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAuD,IAA2B;IACzG,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,OAAO,CAAA;AAC9E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAAO;IAEP,OAAO,CAAC,IAA2B,EAAsB,EAAE,CACzD,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAA;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAuD,IAA2B;IACnH,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,OAAO,CAAE,IAA6B,CAAC,UAAU,CAAC,CAAA;AACpF,CAAC"}
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CreateItem"), exports);
|
|
18
|
-
__exportStar(require("./CreateItemsAtOnce"), exports);
|
|
19
|
-
__exportStar(require("./DeleteItem"), exports);
|
|
20
|
-
__exportStar(require("./DeleteItemsAtOnce"), exports);
|
|
21
|
-
__exportStar(require("./ItemMove"), exports);
|
|
22
|
-
__exportStar(require("./ItemMoveType"), exports);
|
|
23
|
-
__exportStar(require("./MoveItem"), exports);
|
|
24
|
-
__exportStar(require("./MoveItemsAtOnce"), exports);
|
|
25
|
-
__exportStar(require("./RollItem"), exports);
|
|
26
|
-
__exportStar(require("./SelectItem"), exports);
|
|
27
|
-
__exportStar(require("./Shuffle"), exports);
|
|
1
|
+
export * from './CreateItem';
|
|
2
|
+
export * from './CreateItemsAtOnce';
|
|
3
|
+
export * from './DeleteItem';
|
|
4
|
+
export * from './DeleteItemsAtOnce';
|
|
5
|
+
export * from './ItemMove';
|
|
6
|
+
export * from './ItemMoveType';
|
|
7
|
+
export * from './MoveItem';
|
|
8
|
+
export * from './MoveItemsAtOnce';
|
|
9
|
+
export * from './RollItem';
|
|
10
|
+
export * from './SelectItem';
|
|
11
|
+
export * from './Shuffle';
|
|
28
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/material/moves/items/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/material/moves/items/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isCloseTutorialPopup = isCloseTutorialPopup;
|
|
4
|
-
var MoveKind_1 = require("../MoveKind");
|
|
5
|
-
var LocalMove_1 = require("./LocalMove");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { LocalMoveType } from './LocalMove';
|
|
6
3
|
/**
|
|
7
4
|
* Type guard to test if a {@link MaterialMove} is a {@link CloseTutorialPopup} move
|
|
8
5
|
* @param move Move to test
|
|
9
6
|
* @returns true if move is a {@link CloseTutorialPopup}
|
|
10
7
|
*/
|
|
11
|
-
function isCloseTutorialPopup(move) {
|
|
12
|
-
return move.kind ===
|
|
8
|
+
export function isCloseTutorialPopup(move) {
|
|
9
|
+
return move.kind === MoveKind.LocalMove && move.type === LocalMoveType.CloseTutorialPopup;
|
|
13
10
|
}
|
|
14
11
|
//# sourceMappingURL=CloseTutorialPopup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseTutorialPopup.js","sourceRoot":"","sources":["../../../../src/material/moves/local/CloseTutorialPopup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloseTutorialPopup.js","sourceRoot":"","sources":["../../../../src/material/moves/local/CloseTutorialPopup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAkB;IACrD,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,kBAAkB,CAAA;AAC3F,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HelpDisplayType = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Type of help dialogs that can be opened
|
|
6
3
|
*/
|
|
7
|
-
var HelpDisplayType;
|
|
4
|
+
export var HelpDisplayType;
|
|
8
5
|
(function (HelpDisplayType) {
|
|
9
6
|
HelpDisplayType[HelpDisplayType["Material"] = 1] = "Material";
|
|
10
7
|
HelpDisplayType[HelpDisplayType["Location"] = 2] = "Location";
|
|
11
8
|
HelpDisplayType[HelpDisplayType["Rules"] = 3] = "Rules";
|
|
12
|
-
})(HelpDisplayType || (
|
|
9
|
+
})(HelpDisplayType || (HelpDisplayType = {}));
|
|
13
10
|
//# sourceMappingURL=DisplayHelp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayHelp.js","sourceRoot":"","sources":["../../../../src/material/moves/local/DisplayHelp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DisplayHelp.js","sourceRoot":"","sources":["../../../../src/material/moves/local/DisplayHelp.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,6DAAY,CAAA;IAAE,6DAAQ,CAAA;IAAE,uDAAK,CAAA;AAC/B,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalMoveType = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Types of local moves
|
|
6
3
|
*/
|
|
7
|
-
var LocalMoveType;
|
|
4
|
+
export var LocalMoveType;
|
|
8
5
|
(function (LocalMoveType) {
|
|
9
6
|
LocalMoveType[LocalMoveType["DisplayHelp"] = 1] = "DisplayHelp";
|
|
10
7
|
LocalMoveType[LocalMoveType["DropItem"] = 2] = "DropItem";
|
|
11
8
|
LocalMoveType[LocalMoveType["SetTutorialStep"] = 3] = "SetTutorialStep";
|
|
12
9
|
LocalMoveType[LocalMoveType["CloseTutorialPopup"] = 4] = "CloseTutorialPopup";
|
|
13
|
-
})(LocalMoveType || (
|
|
10
|
+
})(LocalMoveType || (LocalMoveType = {}));
|
|
14
11
|
//# sourceMappingURL=LocalMove.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalMove.js","sourceRoot":"","sources":["../../../../src/material/moves/local/LocalMove.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocalMove.js","sourceRoot":"","sources":["../../../../src/material/moves/local/LocalMove.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,MAAM,CAAN,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,+DAAe,CAAA;IAAE,yDAAQ,CAAA;IAAE,uEAAe,CAAA;IAAE,6EAAkB,CAAA;AAChE,CAAC,EAFW,aAAa,KAAb,aAAa,QAExB"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isSetTutorialStep = isSetTutorialStep;
|
|
4
|
-
var MoveKind_1 = require("../MoveKind");
|
|
5
|
-
var LocalMove_1 = require("./LocalMove");
|
|
1
|
+
import { MoveKind } from '../MoveKind';
|
|
2
|
+
import { LocalMoveType } from './LocalMove';
|
|
6
3
|
/**
|
|
7
4
|
* Type guard to test if a {@link MaterialMove} is a {@link SetTutorialStep} move
|
|
8
5
|
* @param move Move to test
|
|
9
6
|
* @returns true if move is a {@link SetTutorialStep}
|
|
10
7
|
*/
|
|
11
|
-
function isSetTutorialStep(move) {
|
|
12
|
-
return move.kind ===
|
|
8
|
+
export function isSetTutorialStep(move) {
|
|
9
|
+
return move.kind === MoveKind.LocalMove && move.type === LocalMoveType.SetTutorialStep;
|
|
13
10
|
}
|
|
14
11
|
//# sourceMappingURL=SetTutorialStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetTutorialStep.js","sourceRoot":"","sources":["../../../../src/material/moves/local/SetTutorialStep.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SetTutorialStep.js","sourceRoot":"","sources":["../../../../src/material/moves/local/SetTutorialStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAY3C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAkB;IAClD,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,eAAe,CAAA;AACxF,CAAC"}
|