New Battle System
I'm done with the changes mentioned in the previous post. I have setup a new movement system that allows you to make multiple moves from one territory, and multiple armies can now occupy one territory at the same time.
I'm currently working on a new battle system to go along with this new movement system. It made sense to me to have the game make all moves first and then process the battles that result. Why is this significant? It is because the old battle system dealt with a one on one battle as soon as a move was made. This necessitated an upgrade to the old battle system to handle more that two armies involved in a battle. This meant I had to write an entirely new battle algorithm. That in itself wasn't that hard, but what made it more difficult was the fact that I am also adding diplomatic states at the same time. So, not all countries in a territory are necessarily involved in the battle. It is possible that a battle could end with more than one country surviving. It creates a question related to who wins the battle and captures the territory. It all depends on who is at war with the country that owns the territory. At this point I use the strength of the surviving armies as a tie breaker. I haven't actually tested to see how well it works, but in a "everyone at war with everyone" situation it works fine.
All that is left to do at the moment is upgrading a window that displays battle results so that it can deal with these new larger battles.
I'm currently working on a new battle system to go along with this new movement system. It made sense to me to have the game make all moves first and then process the battles that result. Why is this significant? It is because the old battle system dealt with a one on one battle as soon as a move was made. This necessitated an upgrade to the old battle system to handle more that two armies involved in a battle. This meant I had to write an entirely new battle algorithm. That in itself wasn't that hard, but what made it more difficult was the fact that I am also adding diplomatic states at the same time. So, not all countries in a territory are necessarily involved in the battle. It is possible that a battle could end with more than one country surviving. It creates a question related to who wins the battle and captures the territory. It all depends on who is at war with the country that owns the territory. At this point I use the strength of the surviving armies as a tie breaker. I haven't actually tested to see how well it works, but in a "everyone at war with everyone" situation it works fine.
All that is left to do at the moment is upgrading a window that displays battle results so that it can deal with these new larger battles.