From cb886616d9d4864a7501fdc4ea52894d707b4587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= Date: Thu, 12 May 2011 21:43:01 +0200 Subject: [PATCH 1/2] Revised 3.4 --- report.lyx | 57 +++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/report.lyx b/report.lyx index 3aa427f..9cf0a85 100644 --- a/report.lyx +++ b/report.lyx @@ -5193,7 +5193,7 @@ name "sec:Communication-with-the-GDL-VM" \begin_layout Standard A game launched on the GGS is run within a virtual machine. - For each programming language supported, there is a virtual machine that + For each programming language supported, there is a virtual machine which interprets the game. Furthermore an interface for communication between the GGS, the game and the players playing the game is present. @@ -5217,40 +5217,45 @@ localStorage by a call for the world object. Interaction with the players is done by using the \emph on -GGS.sendCommand(player_id, command, args) -\emph default - and -\emph on -GGS. -\emph default -sendCommandToAll(command, args). - The localstorage is a convenient way to store global data and other variables - separated from the game state. - Unique ids called gametokens are generated for hosted games so that they - are not mixed up. -\end_layout -\begin_layout Standard -A game launched on the GGS is run within a virtual machine. - For each programming language supported, there is a virtual machine that - interprets the game. - Furthermore an interface for communication between the GGS, the game and - the players playing the game must be present. -\end_layout - -\begin_layout Standard -\begin_inset Note Note +\begin_inset ERT status open \begin_layout Plain Layout - Unique id:s called gametokens are generated for hosted games so that they - are not mixed up. - -- good text, integrate more. + +{ +\backslash +tt GGS.sendCommand(player_id, command, args) +\emph on +} \end_layout \end_inset +\emph default + and +\emph on + +\begin_inset ERT +status open + +\begin_layout Plain Layout + +{ +\backslash +tt GGS.sendCommandToAll(command, args)} +\end_layout + +\end_inset + + +\emph default +. + The localStorage is a convenient way to store global data and other variables + separated from the game state. + Unique ids called game tokens are generated for hosted games so that they + are not mixed up. \begin_inset ERT status open From b4273bb570670fc49af4acd76735dd32743e4705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= Date: Thu, 12 May 2011 21:44:24 +0200 Subject: [PATCH 2/2] Revised 3.4 --- report.lyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report.lyx b/report.lyx index c9f6013..a7bfc95 100644 --- a/report.lyx +++ b/report.lyx @@ -5225,9 +5225,9 @@ status open { \backslash -tt GGS.sendCommand(player_id, command, args) -\emph on -} +tt GGS.sendCommand(player +\backslash +_id, command, args)} \end_layout \end_inset