|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Moteur | +--Moteur_s
le moteur serveur qui gere les clients et les espion
Field Summary | |
private Client |
_c
flux de sortie |
private java.io.BufferedReader |
_clavier
le numero de port |
private java.io.DataInputStream |
_entree
buffer de lecture clavier |
private java.lang.String |
_machine
le nom de la machine |
private int |
_port
le nom de la machine |
private java.net.Socket |
_s
le socket en cours |
private java.io.DataOutputStream |
_sortie
flux d'entree |
private java.lang.Thread |
_th
le thread serveur qui attend les connexions |
protected int |
_val_joue
pour communiquer avec les threads espion |
Fields inherited from class Moteur |
_fin,
_interUtil,
_plateau,
_plateauSimu,
_reserves,
_reservesSimu,
_thread,
_tour |
Constructor Summary | |
Moteur_s(int port,
java.lang.String machine,
InterUtil interUtil)
constructeur de Moteur_s |
Method Summary | |
void |
charge(java.lang.String fichier)
Procedure qui charge une partie sauvegardee |
boolean |
joue(int t)
Fonction qui modifie le plateau si le coup est valide |
void |
run()
programme qui s'execute dans le thread |
void |
start()
lance le thread |
Methods inherited from class Moteur |
afficherDistribution,
capture,
copiePlateau,
copieReserves,
distribuer,
est_vide,
famine,
initialise,
legal,
partieTerminee,
sauve |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.net.Socket _s
private java.lang.Thread _th
private java.lang.String _machine
private int _port
private java.io.BufferedReader _clavier
private java.io.DataInputStream _entree
private java.io.DataOutputStream _sortie
private Client _c
protected int _val_joue
Constructor Detail |
public Moteur_s(int port, java.lang.String machine, InterUtil interUtil)
Method Detail |
public void start()
public void run()
public boolean joue(int t)
t
- le numero de la case a jouerpublic void charge(java.lang.String fichier) throws MauvaisFormatException, ErreurFichierException
fichier
- le nom du fichier a charger
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |