jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
157 stars 63 forks source link

savegame: design/implement optional constraints #67

Open jdmonin opened 4 years ago

jdmonin commented 4 years ago

Design/implement optional constraints for savegame (#65), after file save/load (#66) is completed.

One possible constraint: Bot type (built-in "smart" or "fast", or a given third-party class name)

When game is loaded, server should try to find bots which match the bot types noted in savegame data.

At *RESUMEGAME* or *CONTINUEGAME* command, server checks constraints, and lets user know if they haven't been met. User should be able to ignore and resume anyway by adding some flag to that resume/continue command.

jdmonin commented 4 years ago

^ typo in commit message; nothing is committed yet for #67, which is still at design stage.