CardEffectInterfaces.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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 "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 "Invert target permanent's Security Attack" effect
  97. public interface IInvertSAttackEffect
  98. {
  99. int InversionValue(Permanent permanent, int invertValue);
  100. bool PermanentCondition(Permanent permanent);
  101. }
  102. #endregion
  103. #region "Change target card's card names" effect
  104. public interface IChangeCardNamesEffect
  105. {
  106. List<string> ChangeCardNames(List<string> CardNames, CardSource cardSource);
  107. }
  108. #endregion
  109. #region "Change target card's origin card names" effect
  110. public interface IChangeBaseCardNameEffect
  111. {
  112. List<string> ChangeBaseCardNames(List<string> BaseCardNames, CardSource cardSource);
  113. }
  114. #endregion
  115. #region "Change target card's card names for DigiXros" effect
  116. public interface IChangeCardNamesForDigiXrosEffect
  117. {
  118. List<string> ChangeCardNamesForDigiXros(List<string> CardNames, CardSource cardSource);
  119. }
  120. #endregion
  121. #region "Change target card's traits" effect
  122. public interface IChangeTraitsEffect
  123. {
  124. List<string> ChangTraits(List<string> Traits, CardSource cardSource);
  125. }
  126. #endregion
  127. #region "Target permanent cannot unsuspend" effect
  128. public interface ICanNotUnsuspendEffect
  129. {
  130. bool CanNotUnsuspend(Permanent permanent);
  131. }
  132. #endregion
  133. #region "Target permanent cannot suspend" effect
  134. public interface ICanNotSuspendEffect
  135. {
  136. bool CanNotSuspend(Permanent permanent);
  137. }
  138. #endregion
  139. #region "Target permanent cannot return to hand" effect
  140. public interface ICannotReturnToHandEffect
  141. {
  142. bool CannotReturnToHand(Permanent permanent, ICardEffect cardEffect);
  143. }
  144. #endregion
  145. #region "Target permanent cannot return to deck" effect
  146. public interface ICannotReturnToLibraryEffect
  147. {
  148. bool CannotReturnToLibrary(Permanent permanent, ICardEffect cardEffect);
  149. }
  150. #endregion
  151. #region "Target permanent cannot affected by DP minus effect" effect
  152. public interface IImmuneFromDPMinusEffect
  153. {
  154. bool ImmuneFromDPMinus(Permanent permanent, ICardEffect cardEffect);
  155. }
  156. #endregion
  157. #region "Target permanent cannot affected by De-Digivolve" effect
  158. public interface IImmuneFromDeDigivolveEffect
  159. {
  160. bool ImmuneDeDigivolve(Permanent permanent);
  161. }
  162. #endregion
  163. #region "Target permanent does not have DP" effect
  164. public interface IDontHaveDPEffect
  165. {
  166. bool DontHaveDP(Permanent permanent);
  167. }
  168. #endregion
  169. #region "Change target permanent's DP" effect
  170. public interface IChangeDPEffect
  171. {
  172. int GetDP(int DP, Permanent permanent);
  173. bool PermanentCondition(Permanent permanent);
  174. bool IsUpDown();
  175. bool IsMinusDP();
  176. }
  177. #endregion
  178. #region "Change target permanent's origin DP" effect
  179. public interface IChangeBaseDPEffect
  180. {
  181. int GetDP(int DP, Permanent permanent);
  182. bool PermanentCondition(Permanent permanent);
  183. bool IsUpDown();
  184. bool IsMinusDP();
  185. }
  186. #endregion
  187. #region "Change target card's DP" effect
  188. public interface IChangeCardDPEffect
  189. {
  190. int GetDP(int DP, CardSource cardSource);
  191. bool CardCondition(CardSource cardSource);
  192. bool IsUpDown();
  193. bool IsMinusDP();
  194. }
  195. #endregion
  196. #region "Change target card's cost" effect
  197. public interface IChangeCostEffect
  198. {
  199. int GetCost(int cost, CardSource cardSource, SelectCardEffect.Root root, List<Permanent> targetPermanents);
  200. bool CardCondition(CardSource cardSource);
  201. bool IsUpDown();
  202. bool IsCheckAvailability();
  203. bool IsChangePayingCost();
  204. }
  205. #endregion
  206. #region "Change the maximum DP of DP-based deletion effect" effect
  207. public interface IChangeDPDeleteEffectMaxDPEffect
  208. {
  209. int GetMaxDP(int maxDP, ICardEffect cardEffect);
  210. }
  211. #endregion
  212. #region "Change target permanent's level" effect
  213. public interface IChangePermanentLevelEffect
  214. {
  215. int GetPermanentLevel(int level, Permanent permanent);
  216. }
  217. #endregion
  218. #region "Change target card's level" effect
  219. public interface IChangeCardLevelEffect
  220. {
  221. int GetCardLevel(int level, CardSource cardSource);
  222. }
  223. #endregion
  224. #region "Target attacking permanent can attack to target defending permanent" effect
  225. public interface ICanAttackTargetDefendingPermanentEffect
  226. {
  227. bool CanAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender, ICardEffect cardEffect);
  228. }
  229. #endregion
  230. #region "Target attacking permanent cannot attack to target defending permanent" effect
  231. public interface ICanNotAttackTargetDefendingPermanentEffect
  232. {
  233. bool CanNotAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender);
  234. }
  235. #endregion
  236. #region "Target Security Digimon card does not battle" effect
  237. public interface IDontBattleSecurityDigimonEffect
  238. {
  239. bool DontBattleSecurityDigimon(CardSource cardSource);
  240. }
  241. #endregion
  242. #region "Target defending permanent cannot block target attacking permanent" effect"
  243. public interface ICannotBlockEffect
  244. {
  245. bool CannotBlock(Permanent AttackingPermanent, Permanent BlockingPermanent);
  246. }
  247. #endregion
  248. #region "Target permanent gets additional digivolution condition" effect
  249. public interface IAddDigivolutionRequirementEffect
  250. {
  251. int GetEvoCost(Permanent permanent, CardSource cardSource, bool checkAvailability);
  252. }
  253. #endregion
  254. #region "Target player cannot gain Memory by effects" effect
  255. public interface ICannotAddMemoryEffect
  256. {
  257. bool cannotAddMemory(Player player, ICardEffect cardEffect);
  258. }
  259. #endregion
  260. #region "Target player cannot reduce digivolution costs" effect
  261. public interface ICannotReduceCostEffect
  262. {
  263. bool CannotReduceCost(Player player, List<Permanent> targetPermanents, CardSource cardSource);
  264. }
  265. #endregion
  266. #region "Target player cannot ignore digivolution condition" effect
  267. public interface ICannotIgnoreDigivolutionConditionEffect
  268. {
  269. bool cannotIgnoreDigivolutionCondition(Player player, Permanent targetPermanent, CardSource cardSource);
  270. }
  271. #endregion
  272. #region "Target player cannot add Security" effect
  273. public interface ICannotAddSecurityEffect
  274. {
  275. bool cannotAddSecurity(Player player, ICardEffect cardEffect);
  276. }
  277. #endregion
  278. #region "Target Digimon can be suspended by Digisorption" effect
  279. public interface ICanSuspendByDigisorptionEffect
  280. {
  281. bool canSuspendDigisorption(Permanent permanent, ICardEffect cardEffect);
  282. bool isCheckAvailability();
  283. }
  284. #endregion
  285. #region "Target permanent cannot digivolve into target card" effect"
  286. public interface ICanNotDigivolveEffect
  287. {
  288. bool CanNotEvolve(Permanent permanent, CardSource cardSource);
  289. }
  290. #endregion
  291. #region "Target card cannot be played as a new permanent" effect
  292. public interface ICanNotPutFieldEffect
  293. {
  294. bool CanNotPutField(CardSource cardSource, ICardEffect cardEffect);
  295. }
  296. #endregion
  297. #region "Target card cannot be moved" effect
  298. public interface ICanNotMoveEffect
  299. {
  300. bool CanNotMove(CardSource cardSource, ICardEffect cardEffect);
  301. }
  302. #endregion
  303. #region "Target card gains DNA digivolution conditions" effect
  304. public interface IAddJogressConditionEffect
  305. {
  306. JogressCondition GetJogressCondition(CardSource cardSource);
  307. }
  308. #endregion
  309. #region "Target card gains DigiXros conditions" effect
  310. public interface IAddDigiXrosConditionEffect
  311. {
  312. DigiXrosCondition GetDigiXrosCondition(CardSource cardSource);
  313. }
  314. #endregion
  315. #region "Target card gains Burst digivolution conditions" effect
  316. public interface IAddBurstDigivolutionConditionEffect
  317. {
  318. BurstDigivolutionCondition GetBurstDigivolutionCondition(CardSource cardSource);
  319. }
  320. #endregion
  321. #region "Add the maximum number of cards that can be selected from trash in DigiXros" effect
  322. public interface IAddMaxTrashCountDigiXrosEffect
  323. {
  324. int GetMaxTrashCount(CardSource cardSource);
  325. }
  326. #endregion
  327. #region "Add the maximum number of cards that can be selected from under Tamer in DigiXros" effect
  328. public interface IAddMaxUnderTamerCountDigiXrosEffect
  329. {
  330. int getMaxUnderTamerCount(CardSource cardSource);
  331. }
  332. #endregion
  333. #region "Target card be selected in DigiXros" effect
  334. public interface ICanSelectDigiXrosEffect
  335. {
  336. bool CanSelect(CardSource cardSource, Permanent permanent);
  337. }
  338. #endregion
  339. #region "Target permanent's attack target cannot be switched" effect"
  340. public interface ICanNotSwitchAttackTargetEffect
  341. {
  342. bool CanNotBeSwitchAttackTarget(Permanent permanent);
  343. }
  344. #endregion
  345. #region "Target permanent cannot be deleted" effect"
  346. public interface ICanNotBeDestroyedEffect
  347. {
  348. bool CanNotBeDestroyed(Permanent permanent);
  349. }
  350. #endregion
  351. #region "Target permanent cannot be deleted by battle" effect"
  352. public interface ICanNotBeDestroyedByBattleEffect
  353. {
  354. bool CanNotBeDestroyedByBattle(Permanent permanent, Permanent AttackingPermanent, Permanent DefendingPermanent, CardSource DefendingCard);
  355. bool PermanentCondition(Permanent permanent);
  356. }
  357. #endregion
  358. #region "Target permanent cannot be deleted by effect" effect"
  359. public interface ICanNotBeDestroyedBySkillEffect
  360. {
  361. bool CanNotBeDestroyedBySkill(Permanent permanent, ICardEffect cardEffect);
  362. }
  363. #endregion
  364. #region "Target permanent cannot be removed" effect"
  365. public interface ICanNotBeRemovedEffect
  366. {
  367. bool CanNotBeRemoved(Permanent permanent);
  368. }
  369. #endregion
  370. #region "Target permanent gains Blocker" effect
  371. public interface IBlockerEffect
  372. {
  373. bool IsBlocker(Permanent permanent);
  374. }
  375. #endregion
  376. #region "Add levels for DNA digivolution" effect
  377. public interface IAddJogressLevelsEffect
  378. {
  379. List<int> GetJogressLevels(CardSource cardSource, Permanent permanent);
  380. }
  381. #endregion
  382. #region "Add names for DNA digivolution" effect
  383. public interface IAddDNANamesEffect
  384. {
  385. List<string> GetDNANames(CardSource cardSource, Permanent permanent);
  386. }
  387. #endregion
  388. #region "Change the min memory to end turn" effect
  389. public interface IChangeEndTurnMinMemoryEffect
  390. {
  391. int GetMinMemory(int minMemory);
  392. }
  393. #endregion