Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#74 New game property to only allow retreats to the same territory

Unstable (example)
closed-accepted
Chris Duncan
None
5
2014-01-05
2013-07-27
David Landry
No

In WWI 1914, the only retreats allowed are with sea battles, and retreating units simply remain where they are and the battle ends. Add a new game property that allows retreating to the battle site and disallows retreating to an adjacent area.

1 Attachments

Discussion

  • Chris Duncan
    Chris Duncan
    2014-01-05

    • status: open --> closed-accepted
    • assigned_to: Chris Duncan
     
  • Chris Duncan
    Chris Duncan
    2014-01-05

    I dislike having the logic be in attackerRetreat(), because it should be in getAttackerRetreatTerritories(). Other functions call this, and we should know that there is only 1 territory and that it is the battle site.
    I moved the logic to getAttackerRetreatTerritories() and have committed.
    thx,
    veqryn