CardEffectInterfaces.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. #region "Target effect is negated" effect.
  5. public interface IDisableCardEffect
  6. {
  7. bool IsDisabled(ICardEffect cardEffect);
  8. }
  9. #endregion
  10. #region "Target permanent can not be selected by the effect" effect.
  11. public interface ICanNotSelectBySkillEffect
  12. {
  13. bool CanNotSelectBySkill(Permanent permanent, ICardEffect cardEffect);
  14. }
  15. #endregion
  16. #region "Target card cannot be played" effect.
  17. public interface ICanNotPlayCardEffect
  18. {
  19. bool CanNotPlay(CardSource cardSource);
  20. }
  21. #endregion
  22. #region "Ignore target card's color requirement" effect.
  23. public interface IIgnoreColorConditionEffect
  24. {
  25. bool IgnoreColorCondition(CardSource cardSource);
  26. }
  27. #endregion
  28. #region "Target permanent gains Iceclad" effect
  29. public interface IIcecladEffect
  30. {
  31. bool HasIceclad(Permanent permanent);
  32. }
  33. #endregion
  34. #region "Target permanent gains Rush" effect
  35. public interface IRushEffect
  36. {
  37. bool HasRush(Permanent permanent);
  38. }
  39. #endregion
  40. #region "Target permanent gains Reboot" effect
  41. public interface IRebootEffect
  42. {
  43. bool HasReboot(Permanent permanent);
  44. }
  45. #endregion
  46. #region "Target permanent gains Scapegoat" effect
  47. public interface IScapegoatEffect
  48. {
  49. bool HasScapegoat(Permanent permanent);
  50. }
  51. #endregion
  52. #region "Treat target permanent as Digimon" effect
  53. public interface ITreatAsDigimonEffect
  54. {
  55. bool IsDigimon(Permanent permanent);
  56. }
  57. #endregion
  58. #region "Change target card's colors" effect
  59. public interface IChangeCardColorEffect
  60. {
  61. List<CardColor> GetCardColors(List<CardColor> CardColors, CardSource cardSource);
  62. }
  63. #endregion
  64. #region "Change target card's origin colors" effect
  65. public interface IChangeBaseCardColorEffect
  66. {
  67. List<CardColor> GetBaseCardColors(List<CardColor> BaseCardColors, CardSource cardSource);
  68. }
  69. #endregion
  70. #region "Target card gains additional effects" effect
  71. public interface IAddSkillEffect
  72. {
  73. List<ICardEffect> GetCardEffect(CardSource card, List<ICardEffect> GetCardEffects, EffectTiming timing);
  74. }
  75. #endregion
  76. #region "Target card cannot be affected by effects" effect
  77. public interface ICanNotAffectedEffect
  78. {
  79. bool CanNotAffect(CardSource cardSource, ICardEffect cardEffect);
  80. }
  81. #endregion
  82. #region "Target card cannot be trashed from digivolution cards" effect
  83. public interface ICanNotTrashFromDigivolutionCardsEffect
  84. {
  85. bool CanNotTrashFromDigivolutionCards(CardSource cardSource, ICardEffect cardEffect);
  86. }
  87. #endregion
  88. #region "Change target permanent's Security Attack" effect
  89. public interface IChangeSAttackEffect
  90. {
  91. int GetSAttack(int SAttack, Permanent permanent, int invertValue);
  92. CalculateOrder isUpDown();
  93. bool PermanentCondition(Permanent permanent);
  94. }
  95. #endregion
  96. #region "Change target permanent's Link Max" effect
  97. public interface IChangeLinkMaxEffect
  98. {
  99. int GetLinkMax(int linkMax, Permanent permanent, int invertValue);
  100. CalculateOrder isUpDown();
  101. bool PermanentCondition(Permanent permanent);
  102. }
  103. #endregion
  104. #region "Invert target permanent's Security Attack" effect
  105. public interface IInvertSAttackEffect
  106. {
  107. int InversionValue(Permanent permanent, int invertValue);
  108. bool PermanentCondition(Permanent permanent);
  109. }
  110. #endregion
  111. #region "Change target card's card names" effect
  112. public interface IChangeCardNamesEffect
  113. {
  114. List<string> ChangeCardNames(List<string> CardNames, CardSource cardSource);
  115. }
  116. #endregion
  117. #region "Change target card's origin card names" effect
  118. public interface IChangeBaseCardNameEffect
  119. {
  120. List<string> ChangeBaseCardNames(List<string> BaseCardNames, CardSource cardSource);
  121. }
  122. #endregion
  123. #region "Change target card's card names for DigiXros" effect
  124. public interface IChangeCardNamesForDigiXrosEffect
  125. {
  126. List<string> ChangeCardNamesForDigiXros(List<string> CardNames, CardSource cardSource);
  127. }
  128. #endregion
  129. #region "Change target card's card level for Assembly" effect
  130. public interface IChangeCardLevelForAssemblyEffect
  131. {
  132. List<int> ChangeCardLevelForAssembly(List<int> levels, CardSource cardSource);
  133. }
  134. #endregion
  135. #region "Change target card's traits" effect
  136. public interface IChangeTraitsEffect
  137. {
  138. List<string> ChangTraits(List<string> Traits, CardSource cardSource);
  139. }
  140. #endregion
  141. #region "Target permanent cannot unsuspend" effect
  142. public interface ICanNotUnsuspendEffect
  143. {
  144. bool CanNotUnsuspend(Permanent permanent);
  145. }
  146. #endregion
  147. #region "Target permanent cannot suspend" effect
  148. public interface ICanNotSuspendEffect
  149. {
  150. bool CanNotSuspend(Permanent permanent);
  151. }
  152. #endregion
  153. #region "Target permanent cannot return to hand" effect
  154. public interface ICannotReturnToHandEffect
  155. {
  156. bool CannotReturnToHand(Permanent permanent, ICardEffect cardEffect);
  157. }
  158. #endregion
  159. #region "Target permanent cannot return to deck" effect
  160. public interface ICannotReturnToLibraryEffect
  161. {
  162. bool CannotReturnToLibrary(Permanent permanent, ICardEffect cardEffect);
  163. }
  164. #endregion
  165. #region "Target permanent cannot affected by DP minus effect" effect
  166. public interface IImmuneFromDPMinusEffect
  167. {
  168. bool ImmuneFromDPMinus(Permanent permanent, ICardEffect cardEffect);
  169. }
  170. #endregion
  171. #region "Target permanent cannot affected by De-Digivolve" effect
  172. public interface IImmuneFromDeDigivolveEffect
  173. {
  174. bool ImmuneDeDigivolve(Permanent permanent);
  175. }
  176. #endregion
  177. #region "Target permanent cannot have its stack cards trashed" effect
  178. public interface IImmuneFromStackTrashingEffect
  179. {
  180. bool ImmuneStackTrashing(Permanent permanent, ICardEffect effect);
  181. }
  182. #endregion
  183. #region "Target permanent does not have DP" effect
  184. public interface IDontHaveDPEffect
  185. {
  186. bool DontHaveDP(Permanent permanent);
  187. }
  188. #endregion
  189. #region "Change target permanent's DP" effect
  190. public interface IChangeDPEffect
  191. {
  192. int GetDP(int DP, Permanent permanent);
  193. bool PermanentCondition(Permanent permanent);
  194. bool IsUpDown();
  195. bool IsMinusDP();
  196. }
  197. #endregion
  198. #region "Change target permanent's origin DP" effect
  199. public interface IChangeBaseDPEffect
  200. {
  201. int GetDP(int DP, Permanent permanent);
  202. bool PermanentCondition(Permanent permanent);
  203. bool IsUpDown();
  204. bool IsMinusDP();
  205. }
  206. #endregion
  207. #region "Change target card's DP" effect
  208. public interface IChangeCardDPEffect
  209. {
  210. int GetDP(int DP, CardSource cardSource);
  211. bool CardCondition(CardSource cardSource);
  212. bool IsUpDown();
  213. bool IsMinusDP();
  214. }
  215. #endregion
  216. #region "Change target card's cost" effect
  217. public interface IChangeCostEffect
  218. {
  219. int GetCost(int cost, CardSource cardSource, SelectCardEffect.Root root, List<Permanent> targetPermanents);
  220. bool CardCondition(CardSource cardSource);
  221. bool IsUpDown();
  222. bool IsCheckAvailability();
  223. bool IsChangePayingCost();
  224. }
  225. #endregion
  226. #region "Change target card's cost" effect
  227. public interface IChangeLinkCostEffect
  228. {
  229. int GetCost(int cost, CardSource cardSource, Permanent permanent, SelectCardEffect.Root root);
  230. bool CardCondition(CardSource cardSource);
  231. bool PermanentCondition(Permanent permanent);
  232. bool IsUpDown();
  233. }
  234. #endregion
  235. #region "Change the maximum DP of DP-based deletion effect" effect
  236. public interface IChangeDPDeleteEffectMaxDPEffect
  237. {
  238. int GetMaxDP(int maxDP, ICardEffect cardEffect);
  239. }
  240. #endregion
  241. #region "Change target permanent's level" effect
  242. public interface IChangePermanentLevelEffect
  243. {
  244. int GetPermanentLevel(int level, Permanent permanent);
  245. }
  246. #endregion
  247. #region "Change target card's level" effect
  248. public interface IChangeCardLevelEffect
  249. {
  250. int GetCardLevel(int level, CardSource cardSource);
  251. }
  252. #endregion
  253. #region "Target attacking permanent can attack to target defending permanent" effect
  254. public interface ICanAttackTargetDefendingPermanentEffect
  255. {
  256. bool CanAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender, ICardEffect cardEffect);
  257. }
  258. #endregion
  259. #region "Target attacking permanent cannot attack to target defending permanent" effect
  260. public interface ICanNotAttackTargetDefendingPermanentEffect
  261. {
  262. bool CanNotAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender);
  263. }
  264. #endregion
  265. #region "Target Security Digimon card does not battle" effect
  266. public interface IDontBattleSecurityDigimonEffect
  267. {
  268. bool DontBattleSecurityDigimon(CardSource cardSource);
  269. }
  270. #endregion
  271. #region "Target defending permanent cannot block target attacking permanent" effect"
  272. public interface ICannotBlockEffect
  273. {
  274. bool CannotBlock(Permanent AttackingPermanent, Permanent BlockingPermanent);
  275. }
  276. #endregion
  277. #region "Target permanent gets additional digivolution condition" effect
  278. public interface IAddDigivolutionRequirementEffect
  279. {
  280. int GetEvoCost(Permanent permanent, CardSource cardSource, CardEffectCommons.IgnoreRequirement ignore, bool checkAvailability);
  281. }
  282. #endregion
  283. #region "Target player cannot gain Memory by effects" effect
  284. public interface ICannotAddMemoryEffect
  285. {
  286. bool cannotAddMemory(Player player, ICardEffect cardEffect);
  287. }
  288. #endregion
  289. #region "Target player cannot reduce digivolution costs" effect
  290. public interface ICannotReduceCostEffect
  291. {
  292. bool CannotReduceCost(Player player, List<Permanent> targetPermanents, CardSource cardSource);
  293. }
  294. #endregion
  295. #region "Target player cannot ignore digivolution condition" effect
  296. public interface ICannotIgnoreDigivolutionConditionEffect
  297. {
  298. bool cannotIgnoreDigivolutionCondition(Player player, Permanent targetPermanent, CardSource cardSource);
  299. }
  300. #endregion
  301. #region "Target player cannot add Security" effect
  302. public interface ICannotAddSecurityEffect
  303. {
  304. bool cannotAddSecurity(Player player, ICardEffect cardEffect);
  305. }
  306. #endregion
  307. #region "Target Digimon can be suspended by Digisorption" effect
  308. public interface ICanSuspendByDigisorptionEffect
  309. {
  310. bool canSuspendDigisorption(Permanent permanent, ICardEffect cardEffect);
  311. bool isCheckAvailability();
  312. }
  313. #endregion
  314. #region "Target permanent cannot digivolve into target card" effect"
  315. public interface ICanNotDigivolveEffect
  316. {
  317. bool CanNotEvolve(Permanent permanent, CardSource cardSource);
  318. }
  319. #endregion
  320. #region "Target card cannot be played as a new permanent" effect
  321. public interface ICanNotPutFieldEffect
  322. {
  323. bool CanNotPutField(CardSource cardSource, ICardEffect cardEffect);
  324. }
  325. #endregion
  326. #region "Target card cannot be moved" effect
  327. public interface ICanNotMoveEffect
  328. {
  329. bool CanNotMove(CardSource cardSource, ICardEffect cardEffect);
  330. }
  331. #endregion
  332. #region "Target card gains DNA digivolution conditions" effect
  333. public interface IAddJogressConditionEffect
  334. {
  335. JogressCondition GetJogressCondition(CardSource cardSource);
  336. }
  337. #endregion
  338. #region "Target card gains DigiXros conditions" effect
  339. public interface IAddDigiXrosConditionEffect
  340. {
  341. DigiXrosCondition GetDigiXrosCondition(CardSource cardSource);
  342. }
  343. #endregion
  344. #region "Target card gains Assembly conditions" effect
  345. public interface IAddAssemblyConditionEffect
  346. {
  347. AssemblyCondition GetAssemblyCondition(CardSource cardSource);
  348. }
  349. #endregion
  350. #region "Target card gains Burst digivolution conditions" effect
  351. public interface IAddBurstDigivolutionConditionEffect
  352. {
  353. BurstDigivolutionCondition GetBurstDigivolutionCondition(CardSource cardSource);
  354. }
  355. #endregion
  356. #region "Target card gains Link conditions" effect
  357. public interface IAddLinkConditionEffect
  358. {
  359. LinkCondition GetLinkCondition(CardSource cardSource);
  360. }
  361. #endregion
  362. #region "Target card gains App Fusion digivolution conditions" effect
  363. public interface IAddAppFusionConditionEffect
  364. {
  365. AppFusionCondition GetAppFusionCondition(CardSource cardSource);
  366. }
  367. #endregion
  368. #region "Add the maximum number of cards that can be selected from trash in DigiXros" effect
  369. public interface IAddMaxTrashCountDigiXrosEffect
  370. {
  371. int GetMaxTrashCount(CardSource cardSource);
  372. }
  373. #endregion
  374. #region "Add the maximum number of cards that can be selected from under Tamer in DigiXros" effect
  375. public interface IAddMaxUnderTamerCountDigiXrosEffect
  376. {
  377. int getMaxUnderTamerCount(CardSource cardSource);
  378. }
  379. #endregion
  380. #region "Target card be selected in DigiXros" effect
  381. public interface ICanSelectDigiXrosEffect
  382. {
  383. bool CanSelect(CardSource cardSource, Permanent permanent);
  384. }
  385. #endregion
  386. #region "Target card be selected in Assembly" effect
  387. public interface ICanSelectAssemblyEffect
  388. {
  389. bool CanSelect(CardSource cardSource, Permanent permanent);
  390. }
  391. #endregion
  392. #region "Target permanent's attack target cannot be switched" effect"
  393. public interface ICanNotSwitchAttackTargetEffect
  394. {
  395. bool CanNotBeSwitchAttackTarget(Permanent permanent);
  396. }
  397. #endregion
  398. #region "Target permanent cannot be deleted" effect"
  399. public interface ICanNotBeDestroyedEffect
  400. {
  401. bool CanNotBeDestroyed(Permanent permanent);
  402. }
  403. #endregion
  404. #region "Target permanent cannot be deleted by battle" effect"
  405. public interface ICanNotBeDestroyedByBattleEffect
  406. {
  407. bool CanNotBeDestroyedByBattle(Permanent permanent, Permanent AttackingPermanent, Permanent DefendingPermanent, CardSource DefendingCard);
  408. bool PermanentCondition(Permanent permanent);
  409. }
  410. #endregion
  411. #region "Target permanent cannot be deleted by effect" effect"
  412. public interface ICanNotBeDestroyedBySkillEffect
  413. {
  414. bool CanNotBeDestroyedBySkill(Permanent permanent, ICardEffect cardEffect);
  415. }
  416. #endregion
  417. #region "Target permanent cannot be removed" effect"
  418. public interface ICanNotBeRemovedEffect
  419. {
  420. bool CanNotBeRemoved(Permanent permanent);
  421. }
  422. #endregion
  423. #region "Target permanent gains Blocker" effect
  424. public interface IBlockerEffect
  425. {
  426. bool IsBlocker(Permanent permanent);
  427. }
  428. #endregion
  429. #region "Add levels for DNA digivolution" effect
  430. public interface IAddJogressLevelsEffect
  431. {
  432. List<int> GetJogressLevels(CardSource cardSource, Permanent permanent);
  433. }
  434. #endregion
  435. #region "Add names for DNA digivolution" effect
  436. public interface IAddDNANamesEffect
  437. {
  438. List<string> GetDNANames(CardSource cardSource, Permanent permanent);
  439. }
  440. #endregion
  441. #region "Change the min memory to end turn" effect
  442. public interface IChangeEndTurnMinMemoryEffect
  443. {
  444. int GetMinMemory(int minMemory);
  445. }
  446. #endregion
  447. #region "Vortex may attack Players" effect
  448. public interface IVortexCanAttackPlayersEffect
  449. {
  450. bool VortexCanAttackPlayersPermanent(Permanent Attacker);
  451. }
  452. #endregion