CardEffectInterfaces.cs 11 KB

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