theunreplicated / coloradocollegegame

Automatically exported from code.google.com/p/coloradocollegegame
0 stars 0 forks source link

Change parser, addPlayer, setPosition, &c., to Deal With int[] #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently, parse receives an array of ints passed between client and server
and then uses the first int to decide on the function in World to call.
When it calls it, however, it passes individual ints (e.g.,
"addPlayer(message[1], message[2], message[3] ..."). It would make more
sense and be easier to manipulate later if we instead made parse pass the
array and an int telling the function where in the array to start looking
(e.g., "addPlayer(message, 1)"). That way, if we change the way addPlayer
works (say, it takes another variable), we don't have to change the parse
function at all.

Original issue reported on code.google.com by Omer.Ba...@gmail.com on 1 Feb 2007 at 5:07

GoogleCodeExporter commented 8 years ago

Original comment by Omer.Ba...@gmail.com on 21 Feb 2007 at 3:26