Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
IUT
s32_TRON
Commits
34b95e60
Commit
34b95e60
authored
6 years ago
by
Timothee WRIGHT
Browse files
Options
Download
Email Patches
Plain Diff
construction tron a l'aide du serveur
parent
5f8d2c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Tron/TronClient/TronClient/Client.cs
Tron/TronClient/TronClient/Client.cs
+6
-6
No files found.
Tron/TronClient/TronClient/Client.cs
View file @
34b95e60
...
...
@@ -48,19 +48,19 @@ namespace TronClient
clientSocket
.
Connect
(
serverEP
);
//
TODO
Réception des paramètres
// Réception des paramètres
byte
[]
buffer
=
new
byte
[
4
];
clientSocket
.
Receive
(
buffer
,
buffer
.
Length
,
SocketFlags
.
None
);
//
TODO
Initialisation de la fréquence : frequence = <frequence>
frequence
=
1
;
// Initialisation de la fréquence : frequence = <frequence>
frequence
=
buffer
[
3
]
;
//
TODO
Initialisation du moteur : myTron = new Tron(byte <taille terrain>, byte <nombre de joueurs>, byte <numéro du joueur>);
buffer
[
0
]
=
60
;
// Initialisation du moteur : myTron = new Tron(byte <taille terrain>, byte <nombre de joueurs>, byte <numéro du joueur>);
/*
buffer[0] = 60;
buffer[1] = 2;
buffer[2] = 0;
buffer
[
3
]
=
frequence
;
buffer[3] = frequence;
*/
myTron
=
new
Tron
.
Tron
(
buffer
[
0
],
buffer
[
1
],
buffer
[
2
]);
// Retourne le moteur
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment