Implement the server-side part of the movement. The following things should be roughly done in this task:
Sending proper updates to the client is part of the client-side implementation, and needs not be considered here. Also, battles in case two opposing armies meet, can be done as a stub.
Sorting of movements:
Fast army move before slow army
A fast army has more movementpoints. A fast army doesn't have to use all movementpoints. So use movement points left to detect fast army
In case of same movementpoints left:
Easy tile, lower movementpoints needed, move before then difficult tiles (ie. grass before desert)
Calculation of the movementpoints left of an armyMovement:
first move has all movementpoints of that army minus the needed points of this move
second move has movementpoints of previous move minus the needed points of this move
etc..
Chat summary:
3 Things left to do:
For now, we tackle mainly item 1:
Last edit: Ulf Lorenz 2016-08-31
Chat summary:
Discussed how to put everything together in a MovementPhase:
Chat summary:
Discussed final integration of the movement phase: