CardEffectInterfaces.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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 Rush" effect
  29. public interface IRushEffect
  30. {
  31. bool HasRush(Permanent permanent);
  32. }
  33. #endregion
  34. #region "Target permanent gains Rush" effect
  35. public interface IRebootEffect
  36. {
  37. bool HasReboot(Permanent permanent);
  38. }
  39. #endregion
  40. #region "Treat target permanent as Digimon" effect
  41. public interface ITreatAsDigimonEffect
  42. {
  43. bool IsDigimon(Permanent permanent);
  44. }
  45. #endregion
  46. #region "Change target card's colors" effect
  47. public interface IChangeCardColorEffect
  48. {
  49. List<CardColor> GetCardColors(List<CardColor> CardColors, CardSource cardSource);
  50. }
  51. #endregion
  52. #region "Change target card's origin colors" effect
  53. public interface IChangeBaseCardColorEffect
  54. {
  55. List<CardColor> GetBaseCardColors(List<CardColor> BaseCardColors, CardSource cardSource);
  56. }
  57. #endregion
  58. #region "Target card gains additional effects" effect
  59. public interface IAddSkillEffect
  60. {
  61. List<ICardEffect> GetCardEffect(CardSource card, List<ICardEffect> GetCardEffects, EffectTiming timing);
  62. }
  63. #endregion
  64. #region "Target card cannot be affected by effects" effect
  65. public interface ICanNotAffectedEffect
  66. {
  67. bool CanNotAffect(CardSource cardSource, ICardEffect cardEffect);
  68. }
  69. #endregion
  70. #region "Target card cannot be trashed from digivolution cards" effect
  71. public interface ICanNotTrashFromDigivolutionCardsEffect
  72. {
  73. bool CanNotTrashFromDigivolutionCards(CardSource cardSource, ICardEffect cardEffect);
  74. }
  75. #endregion
  76. #region "Change target permanent's Security Attack" effect
  77. public interface IChangeSAttackEffect
  78. {
  79. int GetSAttack(int SAttack, Permanent permanent);
  80. CalculateOrder isUpDown();
  81. bool PermanentCondition(Permanent permanent);
  82. }
  83. #endregion
  84. #region "Change target card's card names" effect
  85. public interface IChangeCardNamesEffect
  86. {
  87. List<string> ChangeCardNames(List<string> CardNames, CardSource cardSource);
  88. }
  89. #endregion
  90. #region "Change target card's origin card names" effect
  91. public interface IChangeBaseCardNameEffect
  92. {
  93. List<string> ChangeBaseCardNames(List<string> BaseCardNames, CardSource cardSource);
  94. }
  95. #endregion
  96. #region "Change target card's card names for DigiXros" effect
  97. public interface IChangeCardNamesForDigiXrosEffect
  98. {
  99. List<string> ChangeCardNamesForDigiXros(List<string> CardNames, CardSource cardSource);
  100. }
  101. #endregion
  102. #region "Change target card's traits" effect
  103. public interface IChangeTraitsEffect
  104. {
  105. List<string> ChangTraits(List<string> Traits, CardSource cardSource);
  106. }
  107. #endregion
  108. #region "Target permanent cannot unsuspend" effect
  109. public interface ICanNotUnsuspendEffect
  110. {
  111. bool CanNotUnsuspend(Permanent permanent);
  112. }
  113. #endregion
  114. #region "Target permanent cannot suspend" effect
  115. public interface ICanNotSuspendEffect
  116. {
  117. bool CanNotSuspend(Permanent permanent);
  118. }
  119. #endregion
  120. #region "Target permanent cannot return to hand" effect
  121. public interface ICannotReturnToHandEffect
  122. {
  123. bool CannotReturnToHand(Permanent permanent, ICardEffect cardEffect);
  124. }
  125. #endregion
  126. #region "Target permanent cannot return to deck" effect
  127. public interface ICannotReturnToLibraryEffect
  128. {
  129. bool CannotReturnToLibrary(Permanent permanent, ICardEffect cardEffect);
  130. }
  131. #endregion
  132. #region "Target permanent cannot affected by DP minus effect" effect
  133. public interface IImmuneFromDPMinusEffect
  134. {
  135. bool ImmuneFromDPMinus(Permanent permanent, ICardEffect cardEffect);
  136. }
  137. #endregion
  138. #region "Target permanent cannot affected by De-Digivolve" effect
  139. public interface IImmuneFromDeDigivolveEffect
  140. {
  141. bool ImmuneDeDigivolve(Permanent permanent);
  142. }
  143. #endregion
  144. #region "Target permanent does not have DP" effect
  145. public interface IDontHaveDPEffect
  146. {
  147. bool DontHaveDP(Permanent permanent);
  148. }
  149. #endregion
  150. #region "Change target permanent's DP" effect
  151. public interface IChangeDPEffect
  152. {
  153. int GetDP(int DP, Permanent permanent);
  154. bool PermanentCondition(Permanent permanent);
  155. bool IsUpDown();
  156. bool IsMinusDP();
  157. }
  158. #endregion
  159. #region "Change target permanent's origin DP" effect
  160. public interface IChangeBaseDPEffect
  161. {
  162. int GetDP(int DP, Permanent permanent);
  163. bool PermanentCondition(Permanent permanent);
  164. bool IsUpDown();
  165. bool IsMinusDP();
  166. }
  167. #endregion
  168. #region "Change target card's DP" effect
  169. public interface IChangeCardDPEffect
  170. {
  171. int GetDP(int DP, CardSource cardSource);
  172. bool CardCondition(CardSource cardSource);
  173. bool IsUpDown();
  174. bool IsMinusDP();
  175. }
  176. #endregion
  177. #region "Change target card's cost" effect
  178. public interface IChangeCostEffect
  179. {
  180. int GetCost(int cost, CardSource cardSource, SelectCardEffect.Root root, List<Permanent> targetPermanents);
  181. bool CardCondition(CardSource cardSource);
  182. bool IsUpDown();
  183. bool IsCheckAvailability();
  184. bool IsChangePayingCost();
  185. }
  186. #endregion
  187. #region "Change the maximum DP of DP-based deletion effect" effect
  188. public interface IChangeDPDeleteEffectMaxDPEffect
  189. {
  190. int GetMaxDP(int maxDP, ICardEffect cardEffect);
  191. }
  192. #endregion
  193. #region "Change target permanent's level" effect
  194. public interface IChangePermanentLevelEffect
  195. {
  196. int GetPermanentLevel(int level, Permanent permanent);
  197. }
  198. #endregion
  199. #region "Target attacking permanent can attack to target defending permanent" effect
  200. public interface ICanAttackTargetDefendingPermanentEffect
  201. {
  202. bool CanAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender, ICardEffect cardEffect);
  203. }
  204. #endregion
  205. #region "Target attacking permanent cannot attack to target defending permanent" effect
  206. public interface ICanNotAttackTargetDefendingPermanentEffect
  207. {
  208. bool CanNotAttackTargetDefendingPermanent(Permanent Attacker, Permanent Defender);
  209. }
  210. #endregion
  211. #region "Target Security Digimon card does not battle" effect
  212. public interface IDontBattleSecurityDigimonEffect
  213. {
  214. bool DontBattleSecurityDigimon(CardSource cardSource);
  215. }
  216. #endregion
  217. #region "Target defending permanent cannot block target attacking permanent" effect"
  218. public interface ICannotBlockEffect
  219. {
  220. bool CannotBlock(Permanent AttackingPermanent, Permanent BlockingPermanent);
  221. }
  222. #endregion
  223. #region "Target permanent gets additional digivolution condition" effect
  224. public interface IAddDigivolutionRequirementEffect
  225. {
  226. int GetEvoCost(Permanent permanent, CardSource cardSource, bool checkAvailability);
  227. }
  228. #endregion
  229. #region "Target player cannot gain Memory by effects" effect
  230. public interface ICannotAddMemoryEffect
  231. {
  232. bool cannotAddMemory(Player player, ICardEffect cardEffect);
  233. }
  234. #endregion
  235. #region "Target player cannot reduce digivolution costs" effect
  236. public interface ICannotReduceCostEffect
  237. {
  238. bool CannotReduceCost(Player player, List<Permanent> targetPermanents, CardSource cardSource);
  239. }
  240. #endregion
  241. #region "Target player cannot ignore digivolution condition" effect
  242. public interface ICannotIgnoreDigivolutionConditionEffect
  243. {
  244. bool cannotIgnoreDigivolutionCondition(Player player, Permanent targetPermanent, CardSource cardSource);
  245. }
  246. #endregion
  247. #region "Target player cannot add Security" effect
  248. public interface ICannotAddSecurityEffect
  249. {
  250. bool cannotAddSecurity(Player player, ICardEffect cardEffect);
  251. }
  252. #endregion
  253. #region "Target Digimon can be suspended by Digisorption" effect
  254. public interface ICanSuspendByDigisorptionEffect
  255. {
  256. bool canSuspendDigisorption(Permanent permanent, ICardEffect cardEffect);
  257. bool isCheckAvailability();
  258. }
  259. #endregion
  260. #region "Target permanent cannot digivolve into target card" effect"
  261. public interface ICanNotDigivolveEffect
  262. {
  263. bool CanNotEvolve(Permanent permanent, CardSource cardSource);
  264. }
  265. #endregion
  266. #region "Target card cannot be played as a new permanent" effect
  267. public interface ICanNotPutFieldEffect
  268. {
  269. bool CanNotPutField(CardSource cardSource, ICardEffect cardEffect);
  270. }
  271. #endregion
  272. #region "Target card gains DNA digivolution conditions" effect
  273. public interface IAddJogressConditionEffect
  274. {
  275. JogressCondition GetJogressCondition(CardSource cardSource);
  276. }
  277. #endregion
  278. #region "Target card gains DigiXros conditions" effect
  279. public interface IAddDigiXrosConditionEffect
  280. {
  281. DigiXrosCondition GetDigiXrosCondition(CardSource cardSource);
  282. }
  283. #endregion
  284. #region "Target card gains Burst digivolution conditions" effect
  285. public interface IAddBurstDigivolutionConditionEffect
  286. {
  287. BurstDigivolutionCondition GetBurstDigivolutionCondition(CardSource cardSource);
  288. }
  289. #endregion
  290. #region "Add the maximum number of cards that can be selected from trash in DigiXros" effect
  291. public interface IAddMaxTrashCountDigiXrosEffect
  292. {
  293. int GetMaxTrashCount(CardSource cardSource);
  294. }
  295. #endregion
  296. #region "Add the maximum number of cards that can be selected from under Tamer in DigiXros" effect
  297. public interface IAddMaxUnderTamerCountDigiXrosEffect
  298. {
  299. int getMaxUnderTamerCount(CardSource cardSource);
  300. }
  301. #endregion
  302. #region "Target card be selected in DigiXros" effect
  303. public interface ICanSelectDigiXrosEffect
  304. {
  305. bool CanSelect(CardSource cardSource, Permanent permanent);
  306. }
  307. #endregion
  308. #region "Target permanent's attack target cannot be switched" effect"
  309. public interface ICanNotSwitchAttackTargetEffect
  310. {
  311. bool CanNotBeSwitchAttackTarget(Permanent permanent);
  312. }
  313. #endregion
  314. #region "Target permanent cannot be deleted" effect"
  315. public interface ICanNotBeDestroyedEffect
  316. {
  317. bool CanNotBeDestroyed(Permanent permanent);
  318. }
  319. #endregion
  320. #region "Target permanent cannot be deleted by battle" effect"
  321. public interface ICanNotBeDestroyedByBattleEffect
  322. {
  323. bool CanNotBeDestroyedByBattle(Permanent permanent, Permanent AttackingPermanent, Permanent DefendingPermanent, CardSource DefendingCard);
  324. bool PermanentCondition(Permanent permanent);
  325. }
  326. #endregion
  327. #region "Target permanent cannot be deleted by effect" effect"
  328. public interface ICanNotBeDestroyedBySkillEffect
  329. {
  330. bool CanNotBeDestroyedBySkill(Permanent permanent, ICardEffect cardEffect);
  331. }
  332. #endregion
  333. #region "Target permanent cannot be removed" effect"
  334. public interface ICanNotBeRemovedEffect
  335. {
  336. bool CanNotBeRemoved(Permanent permanent);
  337. }
  338. #endregion
  339. #region "Target permanent gains Blocker" effect
  340. public interface IBlockerEffect
  341. {
  342. bool IsBlocker(Permanent permanent);
  343. }
  344. #endregion
  345. #region "Add levels for DNA digivolution" effect
  346. public interface IAddJogressLevelsEffect
  347. {
  348. List<int> GetJogressLevels(CardSource cardSource, Permanent permanent);
  349. }
  350. #endregion
  351. #region "Change the min memory to end turn" effect
  352. public interface IChangeEndTurnMinMemoryEffect
  353. {
  354. int GetMinMemory(int minMemory);
  355. }
  356. #endregion