Mikeware / SpaceBattleArena

Space Battle Arena is a Programming Game.
GNU General Public License v2.0
15 stars 10 forks source link

Provide more explicit system for command callbacks #96

Open hawkerm opened 9 years ago

hawkerm commented 9 years ago

Should generalize the notion of commands returning information to the client.

Discussed making these returns asynchronous and putting more smarts in the client to manage messages, serialize delivery to the client code (to avoid threading concurrency issues), and generally manage the client architecture more robustly.

Radar should be reworked to fit this paradigm as a general available command.

hawkerm commented 8 years ago

@wortzmanb What are your thoughts on this? Should Death/Radar/Scan be separate interface methods which get called on the client semi-asynchronously from their main getNextCommand? This could remove the 'null'/state-management issue with radar, but also force implementing more of a 'memory'/coordination across the class.