|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Moteur | +--Moteur_e
le moteur espion du jeu Awale
Field Summary | |
private java.io.BufferedReader |
_clavier
buffer de lecture clavier |
private java.io.DataInputStream |
_entree
flux d'entree |
private java.lang.String |
_machine
le nom de la machine distante |
private int |
_port
le numero de port |
private java.net.Socket |
_s
le socket en cours |
private java.io.DataOutputStream |
_sortie
flux de sortie |
private java.lang.Thread |
_th
le thread d'execution du moteur espion |
protected int |
_val_joue
valeur jouee passe par le serveur |
Fields inherited from class Moteur |
_fin,
_interUtil,
_plateau,
_plateauSimu,
_reserves,
_reservesSimu,
_thread,
_tour |
Constructor Summary | |
Moteur_e(int port,
java.lang.String machine,
InterUtil interUtil)
constructeur de Moteur_e |
Method Summary | |
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,
charge,
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
protected int _val_joue
Constructor Detail |
public Moteur_e(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 jouer
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |