qpremake 1.5.3 → 1.6.3

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.
Files changed (234) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -7
  3. package/lib/_localizationFiles/English.d.ts +0 -2
  4. package/lib/_localizationFiles/English.js +0 -307
  5. package/lib/_mods/parserModules/addSymbol.d.ts +0 -7
  6. package/lib/_mods/parserModules/addSymbol.js +0 -18
  7. package/lib/_mods/parserModules/expression.d.ts +0 -7
  8. package/lib/_mods/parserModules/expression.js +0 -45
  9. package/lib/_mods/parserModules/expression_parser.d.ts +0 -143
  10. package/lib/_mods/parserModules/expression_parser.js +0 -728
  11. package/lib/_mods/parserModules/img.d.ts +0 -8
  12. package/lib/_mods/parserModules/img.js +0 -42
  13. package/lib/_mods/parserModules/qpOriginal.d.ts +0 -5
  14. package/lib/_mods/parserModules/qpOriginal.js +0 -27
  15. package/lib/_mods/parserModules/sectionID.d.ts +0 -13
  16. package/lib/_mods/parserModules/sectionID.js +0 -56
  17. package/lib/_mods/parserModules/tags.d.ts +0 -9
  18. package/lib/_mods/parserModules/tags.js +0 -29
  19. package/lib/_mods/parserModules/uaddminus.d.ts +0 -9
  20. package/lib/_mods/parserModules/uaddminus.js +0 -42
  21. package/lib/_mods/parserModules/variantCheck.d.ts +0 -10
  22. package/lib/_mods/parserModules/variantCheck.js +0 -53
  23. package/lib/_queenSystem/handler/actionGenrator.d.ts +0 -994
  24. package/lib/_queenSystem/handler/actionGenrator.js +0 -646
  25. package/lib/_queenSystem/handler/actionInputGenerator.d.ts +0 -95
  26. package/lib/_queenSystem/handler/actionInputGenerator.js +0 -373
  27. package/lib/_queenSystem/handler/actionInputRequesterGenerator.d.ts +0 -92
  28. package/lib/_queenSystem/handler/actionInputRequesterGenerator.js +0 -341
  29. package/lib/_queenSystem/handler/cardHandler.d.ts +0 -20
  30. package/lib/_queenSystem/handler/cardHandler.js +0 -61
  31. package/lib/_queenSystem/handler/effectGenerator.d.ts +0 -1
  32. package/lib/_queenSystem/handler/effectGenerator.js +0 -127
  33. package/lib/_queenSystem/handler/localizationHandler.d.ts +0 -28
  34. package/lib/_queenSystem/handler/localizationHandler.js +0 -166
  35. package/lib/_queenSystem/handler/modHandler.d.ts +0 -10
  36. package/lib/_queenSystem/handler/modHandler.js +0 -36
  37. package/lib/_queenSystem/handler/oldDataProcessor.d.ts +0 -9
  38. package/lib/_queenSystem/handler/oldDataProcessor.js +0 -129
  39. package/lib/_queenSystem/handler/registryHandler.d.ts +0 -36
  40. package/lib/_queenSystem/handler/registryHandler.js +0 -63
  41. package/lib/_queenSystem/handler/zoneHandler.d.ts +0 -102
  42. package/lib/_queenSystem/handler/zoneHandler.js +0 -606
  43. package/lib/_queenSystem/loader/loader_card.d.ts +0 -20
  44. package/lib/_queenSystem/loader/loader_card.js +0 -124
  45. package/lib/_queenSystem/loader/loader_effect.d.ts +0 -27
  46. package/lib/_queenSystem/loader/loader_effect.js +0 -163
  47. package/lib/_queenSystem/loader/loader_handler.d.ts +0 -11
  48. package/lib/_queenSystem/loader/loader_handler.js +0 -24
  49. package/lib/_queenSystem/loader/loader_localization.d.ts +0 -11
  50. package/lib/_queenSystem/loader/loader_localization.js +0 -73
  51. package/lib/_queenSystem/loader/loader_mod.d.ts +0 -10
  52. package/lib/_queenSystem/loader/loader_mod.js +0 -72
  53. package/lib/_queenSystem/loader/loader_subtype.d.ts +0 -9
  54. package/lib/_queenSystem/loader/loader_subtype.js +0 -39
  55. package/lib/_queenSystem/loader/loader_type.d.ts +0 -9
  56. package/lib/_queenSystem/loader/loader_type.js +0 -39
  57. package/lib/_queenSystem/loader/loader_zone.d.ts +0 -14
  58. package/lib/_queenSystem/loader/loader_zone.js +0 -35
  59. package/lib/_queenSystem/queenSystem.d.ts +0 -127
  60. package/lib/_queenSystem/queenSystem.js +0 -996
  61. package/lib/_queenSystem/renderer/rendererInterface.d.ts +0 -27
  62. package/lib/_queenSystem/renderer/rendererInterface.js +0 -25
  63. package/lib/data/actionRegistry.d.ts +0 -56
  64. package/lib/data/actionRegistry.js +0 -60
  65. package/lib/data/cardRegistry.d.ts +0 -1162
  66. package/lib/data/cardRegistry.js +0 -716
  67. package/lib/data/deckRegistry.d.ts +0 -19
  68. package/lib/data/deckRegistry.js +0 -41
  69. package/lib/data/effectRegistry.d.ts +0 -465
  70. package/lib/data/effectRegistry.js +0 -151
  71. package/lib/data/effectTypeRegistry.d.ts +0 -14
  72. package/lib/data/effectTypeRegistry.js +0 -14
  73. package/lib/data/operatorRegistry.d.ts +0 -92
  74. package/lib/data/operatorRegistry.js +0 -82
  75. package/lib/data/rarityRegistry.d.ts +0 -28
  76. package/lib/data/rarityRegistry.js +0 -63
  77. package/lib/data/registryRegistry.d.ts +0 -10
  78. package/lib/data/registryRegistry.js +0 -14
  79. package/lib/data/subtypeRegistry.d.ts +0 -15
  80. package/lib/data/subtypeRegistry.js +0 -15
  81. package/lib/data/systemRegistry.d.ts +0 -253
  82. package/lib/data/systemRegistry.js +0 -56
  83. package/lib/data/zoneRegistry.d.ts +0 -43
  84. package/lib/data/zoneRegistry.js +0 -157
  85. package/lib/effectTextParser/index.d.ts +0 -42
  86. package/lib/effectTextParser/index.js +0 -316
  87. package/lib/global/index.d.ts +0 -8
  88. package/lib/global/index.js +0 -12
  89. package/lib/index.d.ts +0 -6335
  90. package/lib/index.js +0 -205
  91. package/lib/specificEffects/e_cond.d.ts +0 -11
  92. package/lib/specificEffects/e_cond.js +0 -36
  93. package/lib/specificEffects/e_fruit.d.ts +0 -3
  94. package/lib/specificEffects/e_fruit.js +0 -187
  95. package/lib/specificEffects/e_generic.d.ts +0 -191
  96. package/lib/specificEffects/e_generic.js +0 -662
  97. package/lib/specificEffects/e_generic_cardTargetting.d.ts +0 -38
  98. package/lib/specificEffects/e_generic_cardTargetting.js +0 -82
  99. package/lib/specificEffects/e_generic_noneTargetting.d.ts +0 -10
  100. package/lib/specificEffects/e_generic_noneTargetting.js +0 -26
  101. package/lib/specificEffects/e_status.d.ts +0 -80
  102. package/lib/specificEffects/e_status.js +0 -151
  103. package/lib/specificEffects/e_test.d.ts +0 -3
  104. package/lib/specificEffects/e_test.js +0 -21
  105. package/lib/types/abstract/gameComponents/API.d.ts +0 -19
  106. package/lib/types/abstract/gameComponents/API.js +0 -2
  107. package/lib/types/abstract/gameComponents/card.d.ts +0 -108
  108. package/lib/types/abstract/gameComponents/card.js +0 -771
  109. package/lib/types/abstract/gameComponents/effect.d.ts +0 -82
  110. package/lib/types/abstract/gameComponents/effect.js +0 -331
  111. package/lib/types/abstract/gameComponents/effectSubtype.d.ts +0 -22
  112. package/lib/types/abstract/gameComponents/effectSubtype.js +0 -40
  113. package/lib/types/abstract/gameComponents/effectType.d.ts +0 -11
  114. package/lib/types/abstract/gameComponents/effectType.js +0 -8
  115. package/lib/types/abstract/gameComponents/settings.d.ts +0 -80
  116. package/lib/types/abstract/gameComponents/settings.js +0 -72
  117. package/lib/types/abstract/gameComponents/zone.d.ts +0 -113
  118. package/lib/types/abstract/gameComponents/zone.js +0 -614
  119. package/lib/types/abstract/gameComponents/zone_gridBased.d.ts +0 -18
  120. package/lib/types/abstract/gameComponents/zone_gridBased.js +0 -58
  121. package/lib/types/abstract/gameComponents/zone_stackBased.d.ts +0 -13
  122. package/lib/types/abstract/gameComponents/zone_stackBased.js +0 -55
  123. package/lib/types/abstract/generics/node.d.ts +0 -23
  124. package/lib/types/abstract/generics/node.js +0 -46
  125. package/lib/types/abstract/generics/position.d.ts +0 -23
  126. package/lib/types/abstract/generics/position.js +0 -91
  127. package/lib/types/abstract/generics/tree.d.ts +0 -25
  128. package/lib/types/abstract/generics/tree.js +0 -153
  129. package/lib/types/abstract/generics/universalResponse.d.ts +0 -4
  130. package/lib/types/abstract/generics/universalResponse.js +0 -2
  131. package/lib/types/abstract/generics/wraper.d.ts +0 -21
  132. package/lib/types/abstract/generics/wraper.js +0 -56
  133. package/lib/types/abstract/parser/component.d.ts +0 -88
  134. package/lib/types/abstract/parser/component.js +0 -132
  135. package/lib/types/abstract/parser/index.d.ts +0 -6
  136. package/lib/types/abstract/parser/index.js +0 -28
  137. package/lib/types/abstract/parser/modPack.d.ts +0 -21
  138. package/lib/types/abstract/parser/modPack.js +0 -48
  139. package/lib/types/abstract/parser/moduleInputObject.d.ts +0 -12
  140. package/lib/types/abstract/parser/moduleInputObject.js +0 -21
  141. package/lib/types/abstract/parser/options.d.ts +0 -31
  142. package/lib/types/abstract/parser/options.js +0 -45
  143. package/lib/types/abstract/serializedGameComponents/Gamestate.d.ts +0 -46
  144. package/lib/types/abstract/serializedGameComponents/Gamestate.js +0 -70
  145. package/lib/types/abstract/serializedGameComponents/Localized.d.ts +0 -69
  146. package/lib/types/abstract/serializedGameComponents/Localized.js +0 -84
  147. package/lib/types/defaultZones/ability.d.ts +0 -10
  148. package/lib/types/defaultZones/ability.js +0 -22
  149. package/lib/types/defaultZones/deck.d.ts +0 -25
  150. package/lib/types/defaultZones/deck.js +0 -90
  151. package/lib/types/defaultZones/drop.d.ts +0 -5
  152. package/lib/types/defaultZones/drop.js +0 -13
  153. package/lib/types/defaultZones/field.d.ts +0 -11
  154. package/lib/types/defaultZones/field.js +0 -35
  155. package/lib/types/defaultZones/grave.d.ts +0 -8
  156. package/lib/types/defaultZones/grave.js +0 -21
  157. package/lib/types/defaultZones/hand.d.ts +0 -5
  158. package/lib/types/defaultZones/hand.js +0 -14
  159. package/lib/types/defaultZones/storage.d.ts +0 -9
  160. package/lib/types/defaultZones/storage.js +0 -21
  161. package/lib/types/defaultZones/system.d.ts +0 -12
  162. package/lib/types/defaultZones/system.js +0 -35
  163. package/lib/types/defaultZones/void.d.ts +0 -4
  164. package/lib/types/defaultZones/void.js +0 -10
  165. package/lib/types/effects/effectSubtypes/subtype_chained.d.ts +0 -10
  166. package/lib/types/effects/effectSubtypes/subtype_chained.js +0 -17
  167. package/lib/types/effects/effectSubtypes/subtype_delayed.d.ts +0 -9
  168. package/lib/types/effects/effectSubtypes/subtype_delayed.js +0 -16
  169. package/lib/types/effects/effectSubtypes/subtype_fieldLock.d.ts +0 -9
  170. package/lib/types/effects/effectSubtypes/subtype_fieldLock.js +0 -21
  171. package/lib/types/effects/effectSubtypes/subtype_graveLock.d.ts +0 -9
  172. package/lib/types/effects/effectSubtypes/subtype_graveLock.js +0 -21
  173. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.d.ts +0 -9
  174. package/lib/types/effects/effectSubtypes/subtype_hand_or_fieldLock.js +0 -21
  175. package/lib/types/effects/effectSubtypes/subtype_hardUnique.d.ts +0 -9
  176. package/lib/types/effects/effectSubtypes/subtype_hardUnique.js +0 -15
  177. package/lib/types/effects/effectSubtypes/subtype_instant.d.ts +0 -8
  178. package/lib/types/effects/effectSubtypes/subtype_instant.js +0 -20
  179. package/lib/types/effects/effectSubtypes/subtype_once.d.ts +0 -12
  180. package/lib/types/effects/effectSubtypes/subtype_once.js +0 -27
  181. package/lib/types/effects/effectSubtypes/subtype_unique.d.ts +0 -9
  182. package/lib/types/effects/effectSubtypes/subtype_unique.js +0 -16
  183. package/lib/types/effects/effectTypes/initEffect.d.ts +0 -7
  184. package/lib/types/effects/effectTypes/initEffect.js +0 -23
  185. package/lib/types/effects/effectTypes/lockEffect.d.ts +0 -9
  186. package/lib/types/effects/effectTypes/lockEffect.js +0 -25
  187. package/lib/types/effects/effectTypes/manualEffect.d.ts +0 -9
  188. package/lib/types/effects/effectTypes/manualEffect.js +0 -18
  189. package/lib/types/effects/effectTypes/passiveEffect.d.ts +0 -9
  190. package/lib/types/effects/effectTypes/passiveEffect.js +0 -23
  191. package/lib/types/effects/effectTypes/triggerEffect.d.ts +0 -9
  192. package/lib/types/effects/effectTypes/triggerEffect.js +0 -28
  193. package/lib/types/errors/cannotLoad.d.ts +0 -5
  194. package/lib/types/errors/cannotLoad.js +0 -13
  195. package/lib/types/errors/cardNotExist.d.ts +0 -5
  196. package/lib/types/errors/cardNotExist.js +0 -13
  197. package/lib/types/errors/cardNotInApplicableZone.d.ts +0 -5
  198. package/lib/types/errors/cardNotInApplicableZone.js +0 -13
  199. package/lib/types/errors/effectCondNotMet.d.ts +0 -5
  200. package/lib/types/errors/effectCondNotMet.js +0 -13
  201. package/lib/types/errors/effectNotExist.d.ts +0 -5
  202. package/lib/types/errors/effectNotExist.js +0 -13
  203. package/lib/types/errors/error.d.ts +0 -17
  204. package/lib/types/errors/error.js +0 -42
  205. package/lib/types/errors/incorrectActionType.d.ts +0 -5
  206. package/lib/types/errors/incorrectActionType.js +0 -13
  207. package/lib/types/errors/index.d.ts +0 -16
  208. package/lib/types/errors/index.js +0 -36
  209. package/lib/types/errors/invalidOrderMap.d.ts +0 -6
  210. package/lib/types/errors/invalidOrderMap.js +0 -14
  211. package/lib/types/errors/invalidPosition.d.ts +0 -6
  212. package/lib/types/errors/invalidPosition.js +0 -13
  213. package/lib/types/errors/subTypeOverrideConflict.d.ts +0 -7
  214. package/lib/types/errors/subTypeOverrideConflict.js +0 -15
  215. package/lib/types/errors/unknownError.d.ts +0 -5
  216. package/lib/types/errors/unknownError.js +0 -13
  217. package/lib/types/errors/unregisteredAction.d.ts +0 -6
  218. package/lib/types/errors/unregisteredAction.js +0 -13
  219. package/lib/types/errors/wrongEffectIdx.d.ts +0 -5
  220. package/lib/types/errors/wrongEffectIdx.js +0 -14
  221. package/lib/types/errors/zoneAttrConflict.d.ts +0 -5
  222. package/lib/types/errors/zoneAttrConflict.js +0 -15
  223. package/lib/types/errors/zoneFull.d.ts +0 -5
  224. package/lib/types/errors/zoneFull.js +0 -13
  225. package/lib/types/errors/zoneNotExist.d.ts +0 -5
  226. package/lib/types/errors/zoneNotExist.js +0 -13
  227. package/lib/types/misc.d.ts +0 -97
  228. package/lib/types/misc.js +0 -8
  229. package/lib/types/mods/effectTextParserModule.d.ts +0 -16
  230. package/lib/types/mods/effectTextParserModule.js +0 -81
  231. package/lib/types/mods/gameModule.d.ts +0 -5
  232. package/lib/types/mods/gameModule.js +0 -8
  233. package/lib/utils/index.d.ts +0 -78
  234. package/lib/utils/index.js +0 -562
@@ -1,25 +0,0 @@
1
- import type res from "../abstract/generics/universalResponse";
2
- import type Card from "../abstract/gameComponents/card";
3
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
4
- import { type Action } from "../../_queenSystem/handler/actionGenrator";
5
- import { identificationInfo } from "../../data/systemRegistry";
6
- import type Hand from "./hand";
7
- import type { dry_system, dry_zone, inputData_zone, inputType } from "../../data/systemRegistry";
8
- import { inputRequester, inputRequester_finalized } from "../../_queenSystem/handler/actionInputGenerator";
9
- declare class Deck extends zone_stack<undefined, [inputData_zone]> {
10
- isEditting: boolean;
11
- get startCoolDown(): any;
12
- get maxCoolDown(): number;
13
- set maxCoolDown(newVal: number);
14
- get maxLoad(): number;
15
- set maxLoad(newVal: number);
16
- get minLoad(): number;
17
- set minLoad(newVal: number);
18
- currentCoolDown: number;
19
- getAction_draw(s: dry_system, hand: dry_zone, cause: identificationInfo, isTurnDraw?: boolean): Action<"a_draw">;
20
- getInput_interact(s: dry_system, cause: identificationInfo): inputRequester<inputType.zone, [inputData_zone], [inputData_zone], inputData_zone, inputData_zone, []>;
21
- interact(s: dry_system, cause: identificationInfo, input: inputRequester_finalized<[inputData_zone]>): Action[];
22
- draw(s: dry_system, a: Action<"a_draw">, hand: Hand): res;
23
- handleOccupied(c: Card, index: number, func: string, line?: number): res;
24
- }
25
- export default Deck;
@@ -1,90 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
7
- const actionGenrator_1 = require("../../_queenSystem/handler/actionGenrator");
8
- const actionInputRequesterGenerator_1 = __importDefault(require("../../_queenSystem/handler/actionInputRequesterGenerator"));
9
- class Deck extends zone_stackBased_1.default {
10
- constructor() {
11
- super(...arguments);
12
- //TODO : add editting ability
13
- this.isEditting = false;
14
- this.currentCoolDown = this.startCoolDown;
15
- }
16
- //quick data access
17
- //draw attributes
18
- get startCoolDown() { var _a; return (_a = this.attr.get("startCoolDown")) !== null && _a !== void 0 ? _a : -1; }
19
- ;
20
- // set startCoolDown(newVal : number) {this.attr.set("startCoolDown", newVal)};
21
- get maxCoolDown() { var _a; return (_a = this.attr.get("maxCoolDown")) !== null && _a !== void 0 ? _a : -1; }
22
- ;
23
- set maxCoolDown(newVal) { this.attr.set("maxCoolDown", newVal); }
24
- ;
25
- //deck editting attributes, unused rn
26
- get maxLoad() { var _a; return (_a = this.attr.get("maxLoad")) !== null && _a !== void 0 ? _a : -1; }
27
- ;
28
- set maxLoad(newVal) { this.attr.set("maxLoad", newVal); }
29
- ;
30
- get minLoad() { var _a; return (_a = this.attr.get("minLoad")) !== null && _a !== void 0 ? _a : -1; }
31
- ;
32
- set minLoad(newVal) { this.attr.set("minLoad", newVal); }
33
- ;
34
- getAction_draw(s, hand, cause, isTurnDraw = false) {
35
- let cid;
36
- cid = (this.cardArr[0]) ? this.cardArr[0].id : undefined;
37
- if (isTurnDraw) {
38
- if (this.currentCoolDown != 0) {
39
- return actionGenrator_1.actionConstructorRegistry.a_draw(s, this)(hand)(cause, {
40
- cooldown: this.currentCoolDown - 1,
41
- doTurnReset: true,
42
- actuallyDraw: false,
43
- });
44
- }
45
- return actionGenrator_1.actionConstructorRegistry.a_draw(s, this)(hand)(cause, {
46
- cooldown: this.maxCoolDown,
47
- doTurnReset: true,
48
- actuallyDraw: true
49
- });
50
- }
51
- //not turn draw, bypass mode, keep turn count the same
52
- return actionGenrator_1.actionConstructorRegistry.a_draw(s, this)(hand)(cause, {
53
- cooldown: NaN,
54
- doTurnReset: false,
55
- actuallyDraw: true
56
- });
57
- }
58
- getInput_interact(s, cause) {
59
- return actionInputRequesterGenerator_1.default.hand(s, this).once();
60
- }
61
- interact(s, cause, input) {
62
- const hand = input.next()[0].data.zone;
63
- return [this.getAction_draw(s, hand, cause, true)];
64
- }
65
- draw(s, a, hand) {
66
- //assume the hand passed in is of the correct player
67
- let res = [undefined, []];
68
- let attr = a.flatAttr();
69
- let d = this;
70
- if (attr.cooldown >= 0 && !isNaN(attr.cooldown) && isFinite(attr.cooldown))
71
- this.currentCoolDown = attr.cooldown;
72
- if (attr.actuallyDraw) {
73
- //draw the top card
74
- let card = this.getCardByPosition(this.top);
75
- if (card) {
76
- res[1] = [actionGenrator_1.actionConstructorRegistry.a_pos_change(s, card)(hand.top)(actionGenrator_1.actionFormRegistry.zone(s, d))];
77
- }
78
- else
79
- console.log("draw has no card");
80
- }
81
- if (attr.doTurnReset)
82
- res[1].push(actionGenrator_1.actionConstructorRegistry.a_turn_reset(actionGenrator_1.actionFormRegistry.zone(s, d)));
83
- return res;
84
- }
85
- handleOccupied(c, index, func, line) {
86
- //move everything else backwards
87
- return this.handleOccupiedPush(c, index, func, line);
88
- }
89
- }
90
- exports.default = Deck;
@@ -1,5 +0,0 @@
1
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
2
- declare class Drop extends zone_stack {
3
- setCapacity(newCapacity: number): void;
4
- }
5
- export default Drop;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
7
- class Drop extends zone_stackBased_1.default {
8
- // constructor(){
9
- // super("drop");
10
- // }
11
- setCapacity(newCapacity) { this.posBound = [newCapacity]; }
12
- }
13
- exports.default = Drop;
@@ -1,11 +0,0 @@
1
- import Position from "../abstract/generics/position";
2
- import zone_grid from "../abstract/gameComponents/zone_gridBased";
3
- import type { dry_position } from "../../data/systemRegistry";
4
- import { Positionable } from "../misc";
5
- declare class Field extends zone_grid {
6
- getEmptyPosArr(): Position[];
7
- getRandomEmptyPos(): Position;
8
- getFrontPos(c: Positionable): dry_position;
9
- getBackPos(c: Positionable): dry_position;
10
- }
11
- export default Field;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //import zone from "../baseClass/zone";
7
- const position_1 = __importDefault(require("../abstract/generics/position"));
8
- const zone_gridBased_1 = __importDefault(require("../abstract/gameComponents/zone_gridBased"));
9
- //[0][1][2][3][4]
10
- //[5][6][7][8][9]
11
- //flipped if enemy
12
- class Field extends zone_gridBased_1.default {
13
- getEmptyPosArr() {
14
- let res = [];
15
- for (let i = 0; i < this.capacity; i++) {
16
- if (this.cardArr[i])
17
- continue;
18
- let p = new position_1.default(this.id, this.name, ...Utils.indexToPosition(i, this.shape));
19
- res.push(p);
20
- }
21
- return res;
22
- }
23
- getRandomEmptyPos() {
24
- let posArr = this.getEmptyPosArr();
25
- let idx = Utils.rng(posArr.length - 1, 0, true);
26
- return posArr[idx];
27
- }
28
- getFrontPos(c) {
29
- return new position_1.default(this.id, this.name, c.pos.x, c.pos.y - 1);
30
- }
31
- getBackPos(c) {
32
- return new position_1.default(this.id, this.name, c.pos.x, c.pos.y + 1);
33
- }
34
- }
35
- exports.default = Field;
@@ -1,8 +0,0 @@
1
- import type res from "../abstract/generics/universalResponse";
2
- import type card from "../abstract/gameComponents/card";
3
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
4
- declare class Grave extends zone_stack {
5
- setCapacity(newCapacity: number): void;
6
- handleOccupied(c: card, index: number, func: string, line?: number): res;
7
- }
8
- export default Grave;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
7
- class Grave extends zone_stackBased_1.default {
8
- // constructor(isPlayerGrave : boolean);
9
- // constructor(keyStr : string);
10
- // constructor(param : boolean | string = true){
11
- // if(typeof param == "string") super(param);
12
- // else if(param) super("playerGrave");
13
- // else super("enemyGrave");
14
- // }
15
- setCapacity(newCapacity) { this.posBound = [newCapacity]; }
16
- handleOccupied(c, index, func, line) {
17
- //move everything else backwards
18
- return this.handleOccupiedPush(c, index, func, line);
19
- }
20
- }
21
- exports.default = Grave;
@@ -1,5 +0,0 @@
1
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
2
- declare class Hand extends zone_stack {
3
- setCapacity(newCapacity: number): void;
4
- }
5
- export default Hand;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //import zone from "../baseClass/zone";
7
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
8
- class Hand extends zone_stackBased_1.default {
9
- // constructor(){
10
- // super("hand");
11
- // }
12
- setCapacity(newCapacity) { this.posBound = [newCapacity]; }
13
- }
14
- exports.default = Hand;
@@ -1,9 +0,0 @@
1
- import type res from "../abstract/generics/universalResponse";
2
- import card from "../abstract/gameComponents/card";
3
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
4
- declare class Storage extends zone_stack {
5
- isEditting: boolean;
6
- maxCardCount: number;
7
- handleOccupied(c: card, index: number, func: string, line?: number): res;
8
- }
9
- export default Storage;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
7
- class Storage extends zone_stackBased_1.default {
8
- constructor() {
9
- super(...arguments);
10
- this.isEditting = false;
11
- this.maxCardCount = 9;
12
- }
13
- // constructor(){
14
- // super("storage");
15
- // }
16
- handleOccupied(c, index, func, line) {
17
- this.cardArr[index] = c;
18
- return [undefined, []];
19
- }
20
- }
21
- exports.default = Storage;
@@ -1,12 +0,0 @@
1
- import { Zone } from "../abstract/gameComponents/zone";
2
- import type { player_stat } from "../../data/systemRegistry";
3
- import type { Action } from "../../_queenSystem/handler/actionGenrator";
4
- import type { dry_system } from "../../data/systemRegistry";
5
- declare class System extends Zone {
6
- threat: number;
7
- get startThreat(): number;
8
- get maxThreat(): number;
9
- get clearThreatWhenBurn(): boolean;
10
- doThreatBurn(s: dry_system, pdata: player_stat): Action[];
11
- }
12
- export default System;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const zone_1 = require("../abstract/gameComponents/zone");
4
- const actionGenrator_1 = require("../../_queenSystem/handler/actionGenrator");
5
- class System extends zone_1.Zone {
6
- constructor() {
7
- // constructor(){
8
- // super("system");
9
- // }
10
- super(...arguments);
11
- //only thing this class do is to do respond to actions with internal actions
12
- //like health 0 -> send to grave
13
- //i moved the things that activated when an action resolved outside in the resolve switch case
14
- //so this is now used for system reactions that needs to get added to the tree b4 the action resolves
15
- this.threat = this.startThreat;
16
- }
17
- get startThreat() { var _a; return (_a = this.attr.get("startThreat")) !== null && _a !== void 0 ? _a : 0; }
18
- get maxThreat() { var _a; return (_a = this.attr.get("maxThreat")) !== null && _a !== void 0 ? _a : 20; }
19
- get clearThreatWhenBurn() { var _a; return (_a = this.attr.get("clearThreatWhenBurn")) !== null && _a !== void 0 ? _a : false; }
20
- doThreatBurn(s, pdata) {
21
- if (pdata.heart === 1) {
22
- pdata.heart = 0;
23
- return [
24
- actionGenrator_1.actionConstructorRegistry.a_force_end_game(actionGenrator_1.actionFormRegistry.zone(s, this))
25
- ];
26
- }
27
- pdata.heart = Math.floor(pdata.heart / 2);
28
- return this.clearThreatWhenBurn ? [
29
- actionGenrator_1.actionConstructorRegistry.a_set_threat_level(actionGenrator_1.actionFormRegistry.zone(s, this), {
30
- newThreatLevel: 0
31
- })
32
- ] : [];
33
- }
34
- }
35
- exports.default = System;
@@ -1,4 +0,0 @@
1
- import zone_stack from "../abstract/gameComponents/zone_stackBased";
2
- declare class Void extends zone_stack {
3
- }
4
- export default Void;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //import zone from "../baseClass/zone";
7
- const zone_stackBased_1 = __importDefault(require("../abstract/gameComponents/zone_stackBased"));
8
- class Void extends zone_stackBased_1.default {
9
- }
10
- exports.default = Void;
@@ -1,10 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class Chained extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -2 | boolean;
8
- parseAfterActivate(c: Card, e: Effect, system: dry_system, res: Action[]): void;
9
- }
10
- export default Chained;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- class Chained extends effectSubtype_1.default {
8
- onEffectCheckCanActivate(c, e, system, a) {
9
- if (!system.isInChainPhase)
10
- return false;
11
- return -2;
12
- }
13
- parseAfterActivate(c, e, system, res) {
14
- res.forEach(i => i.isChain = true);
15
- }
16
- }
17
- exports.default = Chained;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class Delayed extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -2 | boolean;
8
- }
9
- export default Delayed;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- //delayed is the opposite of chained
3
- //used for passive to push it back to resolve during trigger step
4
- var __importDefault = (this && this.__importDefault) || function (mod) {
5
- return (mod && mod.__esModule) ? mod : { "default": mod };
6
- };
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
9
- class Delayed extends effectSubtype_1.default {
10
- onEffectCheckCanActivate(c, e, system, a) {
11
- if (!system.isInTriggerPhase)
12
- return false;
13
- return -2;
14
- }
15
- }
16
- exports.default = Delayed;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class FieldLock extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
8
- }
9
- export default FieldLock;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- const zoneRegistry_1 = require("../../../data/zoneRegistry");
8
- class FieldLock extends effectSubtype_1.default {
9
- onEffectCheckCanActivate(c, e, system, a) {
10
- //fieldLock effects can only be activated on field
11
- //jkong say this is by default how a trigger works
12
- //i dont like it, so i make it a new subtype
13
- let zone = system.getZoneWithID(c.pos.zoneID);
14
- if (!zone)
15
- return false;
16
- if (zone.types.includes(zoneRegistry_1.zoneRegistry.z_field))
17
- return -1;
18
- return false;
19
- }
20
- }
21
- exports.default = FieldLock;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class GraveLock extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
8
- }
9
- export default GraveLock;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- const zoneRegistry_1 = require("../../../data/zoneRegistry");
8
- class GraveLock extends effectSubtype_1.default {
9
- onEffectCheckCanActivate(c, e, system, a) {
10
- //fieldLock effects can only be activated on field
11
- //jkong say this is by default how a trigger works
12
- //i dont like it, so i make it a new subtype
13
- let zone = system.getZoneWithID(c.pos.zoneID);
14
- if (!zone)
15
- return false;
16
- if (zone.types.includes(zoneRegistry_1.zoneRegistry.z_grave))
17
- return -1;
18
- return false;
19
- }
20
- }
21
- exports.default = GraveLock;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class HandOrFieldLock extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
8
- }
9
- export default HandOrFieldLock;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- const zoneRegistry_1 = require("../../../data/zoneRegistry");
8
- class HandOrFieldLock extends effectSubtype_1.default {
9
- onEffectCheckCanActivate(c, e, system, a) {
10
- //fieldLock effects can only be activated on field
11
- //jkong say this is by default how a trigger works
12
- //i dont like it, so i make it a new subtype
13
- let zone = system.getZoneWithID(c.pos.zoneID);
14
- if (!zone)
15
- return false;
16
- if (zone.types.includes(zoneRegistry_1.zoneRegistry.z_field) || zone.types.includes(zoneRegistry_1.zoneRegistry.z_hand))
17
- return -1;
18
- return false;
19
- }
20
- }
21
- exports.default = HandOrFieldLock;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class HardUnique extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
8
- }
9
- export default HardUnique;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- class HardUnique extends effectSubtype_1.default {
8
- onEffectCheckCanActivate(c, e, system, a) {
9
- //hardUnique is once per turn per card
10
- if (system.getActivatedCardIDs().includes(c.id))
11
- return false;
12
- return -1;
13
- }
14
- }
15
- exports.default = HardUnique;
@@ -1,8 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type { dry_card, dry_system } from "../../../data/systemRegistry";
4
- import type Effect from "../../abstract/gameComponents/effect";
5
- declare class Instant extends EffectSubtype {
6
- onEffectActivate(c: dry_card, e: Effect, system: dry_system, a: Action): -1 | Action[];
7
- }
8
- export default Instant;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- const actionGenrator_1 = require("../../../_queenSystem/handler/actionGenrator");
8
- class Instant extends effectSubtype_1.default {
9
- onEffectActivate(c, e, system, a) {
10
- if (system.turnAction && system.turnAction.id !== a.id)
11
- return -1;
12
- // return [new modifyAnotherAction(system.rootID, "doIncreaseTurnCount", false, true, c.id)]
13
- return [
14
- actionGenrator_1.actionConstructorRegistry.a_modify_action("a_turn_end")(system, system.getRootAction())(actionGenrator_1.actionFormRegistry.subtype(system, c, e, this))({
15
- doIncreaseTurnCount: false
16
- })
17
- ];
18
- }
19
- }
20
- exports.default = Instant;
@@ -1,12 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class Once extends EffectSubtype {
7
- triggered: boolean;
8
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
9
- onEffectActivate(c: Card, e: Effect, system: dry_system, a: Action): -1;
10
- activateSpecificFunctionality(c: Card, e: Effect, system: dry_system, a: Action): Action[];
11
- }
12
- export default Once;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- class Once extends effectSubtype_1.default {
8
- constructor() {
9
- super(...arguments);
10
- this.triggered = false;
11
- }
12
- onEffectCheckCanActivate(c, e, system, a) {
13
- if (this.triggered)
14
- return false;
15
- return -1;
16
- }
17
- onEffectActivate(c, e, system, a) {
18
- this.triggered = true;
19
- return -1;
20
- }
21
- activateSpecificFunctionality(c, e, system, a) {
22
- //reset once
23
- this.triggered = false;
24
- return [];
25
- }
26
- }
27
- exports.default = Once;
@@ -1,9 +0,0 @@
1
- import EffectSubtype from "../../abstract/gameComponents/effectSubtype";
2
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
3
- import type Card from "../../abstract/gameComponents/card";
4
- import type { dry_system } from "../../../data/systemRegistry";
5
- import type Effect from "../../abstract/gameComponents/effect";
6
- declare class Unique extends EffectSubtype {
7
- onEffectCheckCanActivate(c: Card, e: Effect, system: dry_system, a: Action): -1 | boolean;
8
- }
9
- export default Unique;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const effectSubtype_1 = __importDefault(require("../../abstract/gameComponents/effectSubtype"));
7
- class Unique extends effectSubtype_1.default {
8
- onEffectCheckCanActivate(c, e, system, a) {
9
- //unique is once per turn per copy of the effect
10
- //essentially once per effect unique ID
11
- if (system.getActivatedEffectIDs().includes(e.id))
12
- return false;
13
- return -1;
14
- }
15
- }
16
- exports.default = Unique;
@@ -1,7 +0,0 @@
1
- import type { Action } from "../../../_queenSystem/handler/actionGenrator";
2
- import type Card from "../../abstract/gameComponents/card";
3
- import type { dry_effect, dry_system } from "../../../data/systemRegistry";
4
- import TriggerEffect from "./triggerEffect";
5
- export default class InitEffect extends TriggerEffect {
6
- canRespondAndActivate(e: dry_effect, c: Card, system: dry_system, a: Action): -1 | boolean;
7
- }