mage/Mage.Tests
Alex Vasile a2162ec3e7
Refactor: private fields and performance tweaks (#9625)
1a. Make `costs`, `manaCosts`, and `manaCostsToPay` private in `AbilityImpl` with access through getters/setters 
1b. fix cost adjuster for imprinted cards affected by the above

2a. Lazy instantiation for rarely used `data` field in `TargetPointerImpl`

3a. Pre-allocate certain array sizes in `Modes` and `CostsImpl`

4a. Make `manaTemplate` private in `BasicManaEffect`, copy when passing outside the class 
4b. Don't copy `manaTemplate` in copy constructor since it doesn't change 
4c. Add comments explaining copy usage for `manaTemplate` 
4d. Remove redundant variable assignment and make fields final 

---------

Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
2023-08-27 17:58:19 -04:00
..
config Refactor: Remove Unused ComputerPlayer3 (#9220) 2022-07-04 23:13:23 -04:00
piperDecks Implementing The Prismatic Piper (Ready for review) (#8164) 2022-03-17 18:02:29 -04:00
src Refactor: private fields and performance tweaks (#9625) 2023-08-27 17:58:19 -04:00
CMDNorinTheWary.dck
CommanderAnafenza_WBG.dck
CommanderDuel.dck
CommanderDuel_Karador_BGW.dck
CommanderDuel_Mairisil_UBR.dck
CommanderDuel_Partners.dck
CommanderDuel_UW.dck
CommanderOviya.dck
JustLands.txt
Oathbreaker_UR.dck
pom.xml dev: mark test sub-projects as non-deployable (fixed build warning) 2022-09-29 17:59:08 +04:00
Power Hungry.dck
RB Aggro.dck * Performance: optimized cards database to increase tests and boosters generation; 2021-08-12 23:59:08 +04:00
UW Control.dck