CardEffectInterfaces.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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 Alliance" effect
  47. public interface IAllianceEffect
  48. {
  49. bool HasAlliance(Permanent permanent);
  50. }
  51. #endregion
  52. #region "Target permanent gains Scapegoat" effect
  53. public interface IScapegoatEffect
  54. {
  55. bool HasScapegoat(Permanent permanent);
  56. }
  57. #endregion
  58. #region "Treat target permanent as Digimon" effect
  59. public interface ITreatAsDigimonEffect
  60. {
  61. bool IsDigimon(Permanent permanent);
  62. }
  63. #endregion
  64. #region "Change target card's colors" effect
  65. public interface IChangeCardColorEffect
  66. {
  67. List<CardColor> GetCardColors(List<CardColor> CardColors, CardSource cardSource);
  68. }
  69. #endregion
  70. #region "Change target card's origin colors" effect
  71. public interface IChangeBaseCardColorEffect
  72. {
  73. List<CardColor> GetBaseCardColors(List<CardColor> BaseCardColors, CardSource cardSource);
  74. }
  75. #endregion
  76. #region "Target card gains additional effects" effect
  77. public interface IAddSkillEffect
  78. {
  79. List<ICardEffect> GetCardEffect(CardSource card, List<ICardEffect> GetCardEffects, EffectTiming timing);
  80. }
  81. #endregion
  82. #region "Target card cannot be affected by effects" effect
  83. public interface ICanNotAffectedEffect
  84. {
  85. bool CanNotAffect(CardSource cardSource, ICardEffect cardEffect);
  86. }
  87. #endregion
  88. #region "Target card cannot be trashed from digivolution cards" effect
  89. public interface ICanNotTrashFromDigivolutionCardsEffect
  90. {
  91. bool CanNotTrashFromDigivolutionCards(CardSource cardSource, ICardEffect cardEffect);
  92. }
  93. #endregion
  94. #region "Change target permanent's Security Attack" effect
  95. public interface IChangeSAttackEffect
  96. {
  97. int GetSAttack(int SAttack, Permanent permanent, int invertValue);
  98. CalculateOrder isUpDown();
  99. bool PermanentCondition(Permanent permanent);
  100. }
  101. #endregion
  102. #region "Change target permanent's Link Max" effect
  103. public interface IChangeLinkMaxEffect
  104. {
  105. int GetLinkMax(int linkMax, Permanent permanent, int invertValue);
  106. CalculateOrder isUpDown();
  107. bool PermanentCondition(Permanent permanent);
  108. }
  109. #endregion
  110. #region "Invert target permanent's Security Attack" effect
  111. public interface IInvertSAttackEffect
  112. {
  113. int InversionValue(Permanent permanent, int invertValue);
  114. bool PermanentCondition(Permanent permanent);
  115. }
  116. #endregion
  117. #region "Change target card's card names" effect
  118. public interface IChangeCardNamesEffect
  119. {
  120. List<string> ChangeCardNames(List<string> CardNames, CardSource cardSource);
  121. }
  122. #endregion
  123. #region "Change target card's origin card names" effect
  124. public interface IChangeBaseCardNameEffect
  125. {
  126. List<string> ChangeBaseCardNames(List<string> BaseCardNames, CardSource cardSource);
  127. }
  128. #endregion
  129. #region "Change target card's card names for DigiXros" effect
  130. public interface IChangeCardNamesForDigiXrosEffect
  131. {
  132. List<string> ChangeCardNamesForDigiXros(List<string> CardNames, 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 the maximum DP of DP-based deletion effect" effect
  227. public interface IChangeDPDeleteEffectMaxDPEffect
  228. {
  229. int GetMaxDP(int maxDP, ICardEffect cardEffect);
  230. }
  231. #endregion
  232. #region "Change target permanent's level" effect
  233. public interface IChangePermanentLevelEffect
  234. {
  235. int GetPermanentLevel(int level, Permanent permanent);
  236. }
  237. #endregion
  238. #region "Change target card's level" effect
  239. public interface IChangeCardLevelEffect
  240. {
  241. int GetCardLevel(int level, CardSource cardSource);
  242. }
  243. #endregion
  244. #region "Target attacking permanent can attack to target defending permanent" effect
  245. public interface ICanAttackTargetDefendingPermanentEffect
  246. {
  247. bool CanAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender, ICardEffect cardEffect);
  248. }
  249. #endregion
  250. #region "Target attacking permanent cannot attack to target defending permanent" effect
  251. public interface ICanNotAttackTargetDefendingPermanentEffect
  252. {
  253. bool CanNotAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender);
  254. }
  255. #endregion
  256. #region "Target Security Digimon card does not battle" effect
  257. public interface IDontBattleSecurityDigimonEffect
  258. {
  259. bool DontBattleSecurityDigimon(CardSource cardSource);
  260. }
  261. #endregion
  262. #region "Target defending permanent cannot block target attacking permanent" effect"
  263. public interface ICannotBlockEffect
  264. {
  265. bool CannotBlock(Permanent AttackingPermanent, Permanent BlockingPermanent);
  266. }
  267. #endregion
  268. #region "Target permanent gets additional digivolution condition" effect
  269. public interface IAddDigivolutionRequirementEffect
  270. {
  271. int GetEvoCost(Permanent permanent, CardSource cardSource, bool checkAvailability);
  272. }
  273. #endregion
  274. #region "Target player cannot gain Memory by effects" effect
  275. public interface ICannotAddMemoryEffect
  276. {
  277. bool cannotAddMemory(Player player, ICardEffect cardEffect);
  278. }
  279. #endregion
  280. #region "Target player cannot reduce digivolution costs" effect
  281. public interface ICannotReduceCostEffect
  282. {
  283. bool CannotReduceCost(Player player, List<Permanent> targetPermanents, CardSource cardSource);
  284. }
  285. #endregion
  286. #region "Target player cannot ignore digivolution condition" effect
  287. public interface ICannotIgnoreDigivolutionConditionEffect
  288. {
  289. bool cannotIgnoreDigivolutionCondition(Player player, Permanent targetPermanent, CardSource cardSource);
  290. }
  291. #endregion
  292. #region "Target player cannot add Security" effect
  293. public interface ICannotAddSecurityEffect
  294. {
  295. bool cannotAddSecurity(Player player, ICardEffect cardEffect);
  296. }
  297. #endregion
  298. #region "Target Digimon can be suspended by Digisorption" effect
  299. public interface ICanSuspendByDigisorptionEffect
  300. {
  301. bool canSuspendDigisorption(Permanent permanent, ICardEffect cardEffect);
  302. bool isCheckAvailability();
  303. }
  304. #endregion
  305. #region "Target permanent cannot digivolve into target card" effect"
  306. public interface ICanNotDigivolveEffect
  307. {
  308. bool CanNotEvolve(Permanent permanent, CardSource cardSource);
  309. }
  310. #endregion
  311. #region "Target card cannot be played as a new permanent" effect
  312. public interface ICanNotPutFieldEffect
  313. {
  314. bool CanNotPutField(CardSource cardSource, ICardEffect cardEffect);
  315. }
  316. #endregion
  317. #region "Target card cannot be moved" effect
  318. public interface ICanNotMoveEffect
  319. {
  320. bool CanNotMove(CardSource cardSource, ICardEffect cardEffect);
  321. }
  322. #endregion
  323. #region "Target card gains DNA digivolution conditions" effect
  324. public interface IAddJogressConditionEffect
  325. {
  326. JogressCondition GetJogressCondition(CardSource cardSource);
  327. }
  328. #endregion
  329. #region "Target card gains DigiXros conditions" effect
  330. public interface IAddDigiXrosConditionEffect
  331. {
  332. DigiXrosCondition GetDigiXrosCondition(CardSource cardSource);
  333. }
  334. #endregion
  335. #region "Target card gains Burst digivolution conditions" effect
  336. public interface IAddBurstDigivolutionConditionEffect
  337. {
  338. BurstDigivolutionCondition GetBurstDigivolutionCondition(CardSource cardSource);
  339. }
  340. #endregion
  341. #region "Target card gains Link conditions" effect
  342. public interface IAddLinkConditionEffect
  343. {
  344. LinkCondition GetLinkCondition(CardSource cardSource);
  345. }
  346. #endregion
  347. #region "Target card gains App Fusion digivolution conditions" effect
  348. public interface IAddAppFusionConditionEffect
  349. {
  350. AppFusionCondition GetAppFusionCondition(CardSource cardSource);
  351. }
  352. #endregion
  353. #region "Add the maximum number of cards that can be selected from trash in DigiXros" effect
  354. public interface IAddMaxTrashCountDigiXrosEffect
  355. {
  356. int GetMaxTrashCount(CardSource cardSource);
  357. }
  358. #endregion
  359. #region "Add the maximum number of cards that can be selected from under Tamer in DigiXros" effect
  360. public interface IAddMaxUnderTamerCountDigiXrosEffect
  361. {
  362. int getMaxUnderTamerCount(CardSource cardSource);
  363. }
  364. #endregion
  365. #region "Target card be selected in DigiXros" effect
  366. public interface ICanSelectDigiXrosEffect
  367. {
  368. bool CanSelect(CardSource cardSource, Permanent permanent);
  369. }
  370. #endregion
  371. #region "Target permanent's attack target cannot be switched" effect"
  372. public interface ICanNotSwitchAttackTargetEffect
  373. {
  374. bool CanNotBeSwitchAttackTarget(Permanent permanent);
  375. }
  376. #endregion
  377. #region "Target permanent cannot be deleted" effect"
  378. public interface ICanNotBeDestroyedEffect
  379. {
  380. bool CanNotBeDestroyed(Permanent permanent);
  381. }
  382. #endregion
  383. #region "Target permanent cannot be deleted by battle" effect"
  384. public interface ICanNotBeDestroyedByBattleEffect
  385. {
  386. bool CanNotBeDestroyedByBattle(Permanent permanent, Permanent AttackingPermanent, Permanent DefendingPermanent, CardSource DefendingCard);
  387. bool PermanentCondition(Permanent permanent);
  388. }
  389. #endregion
  390. #region "Target permanent cannot be deleted by effect" effect"
  391. public interface ICanNotBeDestroyedBySkillEffect
  392. {
  393. bool CanNotBeDestroyedBySkill(Permanent permanent, ICardEffect cardEffect);
  394. }
  395. #endregion
  396. #region "Target permanent cannot be removed" effect"
  397. public interface ICanNotBeRemovedEffect
  398. {
  399. bool CanNotBeRemoved(Permanent permanent);
  400. }
  401. #endregion
  402. #region "Target permanent gains Blocker" effect
  403. public interface IBlockerEffect
  404. {
  405. bool IsBlocker(Permanent permanent);
  406. }
  407. #endregion
  408. #region "Add levels for DNA digivolution" effect
  409. public interface IAddJogressLevelsEffect
  410. {
  411. List<int> GetJogressLevels(CardSource cardSource, Permanent permanent);
  412. }
  413. #endregion
  414. #region "Add names for DNA digivolution" effect
  415. public interface IAddDNANamesEffect
  416. {
  417. List<string> GetDNANames(CardSource cardSource, Permanent permanent);
  418. }
  419. #endregion
  420. #region "Change the min memory to end turn" effect
  421. public interface IChangeEndTurnMinMemoryEffect
  422. {
  423. int GetMinMemory(int minMemory);
  424. }
  425. #endregion