Alpha 6 - Battle
What did I done here ?
-
Battle
- Battle Entities : Battle, EngagedArmy, Fight, FightingUnit, BattleLog
- Attack now trigger Battle when relevant
- Added the Battle page V0 (no units displayed, battle stats not implemented)
- Show Attacking Generals animations on Map and Management pages
- Battle resolution after time (V0 : score each army, the best score wins, losing army is obliterated)
- Fortification is now functional
-
Refactor the logic that load map data (server now send json and js fetch info from it)
- Removed the mess in Map.twig.html
- I implemented JsonSerializable on Entities to fetch the info
- js now directly read the json and can easily get any data
-
Other changes / fixes ...
- Map : Settings color gauges are now more responsive.
- User page : Relation / Rights buttons now all have tooltips
- Added various cheats to speed up debug
Before merging :
-
Merge all migrations -
Add ArmyContainer dedicated to the Battle & copy army data to those local battle ArmyContainer (so it's not linked to an actual General or City container)
Edited by Bibni