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

Unstable (example)
closed-accepted
None
5
2014-01-05
2013-07-27
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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks