X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=new2%2Fplomrogue%2Fcommands.py;h=397dbe45f332aae29d22e6fba8671786496a4316;hb=25042810293b1ee02c39b7d0bd4c9d9016972d75;hp=09f22c081beb346070f5bbc7175110577471378b;hpb=1dc47266dcb1f7f692a7e993d2fb0bfb9f7ceeb1;p=plomrogue2-experiments diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index 09f22c0..397dbe4 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -37,4 +37,12 @@ cmd_QUERY.argtypes = 'string string' def cmd_PING(game, connection_id): game.io.send('PONG') -cmd_QUERY.argtypes = '' +cmd_PING.argtypes = '' + +def cmd_TURN(game, n): + game.turn = n +cmd_TURN.argtypes = 'int:nonneg' + +def cmd_MAP_LINE(game, y, line): + game.map.set_line(y, line) +cmd_MAP_LINE.argtypes = 'int:nonneg string'