All Packages Class Hierarchy This Package Previous Next Index
Class navalBattle.NavalBattleEntry
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----navalBattle.NavalBattleEntry
- public class NavalBattleEntry
- extends Frame
- implements ActionListener, WindowListener
POIN D'ENTREE DU JEU DE BATAILLE NAVALE MULTI JOUEUR
* Utilise les RMI !
* Choisir "New Game" pour etre Serveur RMI
----------(RMIRegistry doit etre lancer sur cette machine
* Choisir "Join Game" avec un nom de serveur valide,
----------pour participer a une partie comme client RMI
-
ivjContentsPane
-
-
ivjDisposeBoats1
-
-
ivjFile
-
-
ivjFrameNbJoueurs1
-
-
ivjJoinGameButton
-
-
ivjLabelNickName
-
-
ivjLabelServeur
-
-
ivjNavalBattleEntryBorderLayout
-
-
ivjNavalBattleEntryMenuBar
-
-
ivjNewGame
-
-
ivjQuitterMenuItem
-
-
ivjTextFieldNickName
-
-
ivjTextFieldServer
-
-
nbJoueurs
-
-
nickName
-
-
serverHostName
-
-
vectorTireur
-
-
NavalBattleEntry()
- Constructor
-
NavalBattleEntry(String)
- NavalBattleEntry constructor comment.
-
actionPerformed(ActionEvent)
- Method to handle events for the ActionListener interface.
-
connEtoC1(WindowEvent)
- connEtoC1: (NavalBattleEntry.window.windowClosing(java.awt.event.WindowEvent) --> NavalBattleEntry.dispose()V)
-
connEtoC2(ActionEvent)
- connEtoC2: (NewGame.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.newGame_ActionEvents(Ljava.awt.event.ActionEvent;)V)
-
connEtoC3(ActionEvent)
- connEtoC3: (JoinGameButton.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.joinGameButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
-
connEtoC4(ActionEvent)
- connEtoC4: (QuitterMenuItem.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.quitterMenuItem_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
-
getBuilderData()
-
-
getContentsPane()
- Return the ContentsPane property value.
-
getDisposeBoats1()
- Return the DisposeBoats1 property value.
-
getFile()
- Return the Menu1 property value.
-
getFrameNbJoueurs1()
- Return the FrameNbJoueurs1 property value.
-
getJoinGameButton()
- Return the Button2 property value.
-
getLabelNickName()
- Return the Label1 property value.
-
getLabelServeur()
- Return the LabelNickName1 property value.
-
getNavalBattleEntryBorderLayout()
- Return the NavalBattleEntryBorderLayout property value.
-
getNavalBattleEntryMenuBar()
- Return the NavalBattleEntryMenuBar property value.
-
getNewGame()
- Return the Button1 property value.
-
getQuitterMenuItem()
- Return the QuitterMenuItem property value.
-
getTextFieldNickName()
- Return the TextField1 property value.
-
getTextFieldServer()
- Return the TextFieldNickName1 property value.
-
handleException(Throwable)
- Called whenever the part throws an exception.
-
initClient()
- Initialisation comme client
-
initConnections()
- Initializes connections
-
initialize()
- Initialize the class.
-
initServer()
- Initialisation comme Serveur
-
joinGameButton_ActionPerformed(ActionEvent)
- Rejoindre un jeu comme client RMI
-
main(String[])
- Entree de l'Application
-
newGame_ActionEvents(ActionEvent)
- Creer un jeu comme Serveur RMI
-
quitterMenuItem_ActionPerformed(ActionEvent)
- Quitter !
-
setNbJoueurs(int)
- Accesseur du nombre de joueurs
-
setNickName(TextField)
- Modifieur Pseudo
-
setServer(TextField)
- modifieur du nom de machine serveur
-
showErreur(String)
- Quand Erreur
-
windowActivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosed(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowClosing(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeactivated(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowDeiconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowIconified(WindowEvent)
- Method to handle events for the WindowListener interface.
-
windowOpened(WindowEvent)
- Method to handle events for the WindowListener interface.
ivjContentsPane
private Panel ivjContentsPane
ivjJoinGameButton
private Button ivjJoinGameButton
ivjLabelNickName
private Label ivjLabelNickName
ivjNewGame
private Button ivjNewGame
ivjTextFieldNickName
private TextField ivjTextFieldNickName
ivjNavalBattleEntryMenuBar
private MenuBar ivjNavalBattleEntryMenuBar
ivjLabelServeur
private Label ivjLabelServeur
ivjNavalBattleEntryBorderLayout
private BorderLayout ivjNavalBattleEntryBorderLayout
ivjFile
private Menu ivjFile
ivjQuitterMenuItem
private MenuItem ivjQuitterMenuItem
ivjFrameNbJoueurs1
private FrameNbJoueurs ivjFrameNbJoueurs1
ivjTextFieldServer
private TextField ivjTextFieldServer
ivjDisposeBoats1
private DisposeBoats ivjDisposeBoats1
nbJoueurs
private int nbJoueurs
nickName
private String nickName
serverHostName
private String serverHostName
vectorTireur
private VectorTireur vectorTireur
NavalBattleEntry
public NavalBattleEntry()
- Constructor
NavalBattleEntry
public NavalBattleEntry(String title)
- NavalBattleEntry constructor comment.
- Parameters:
- title - java.lang.String
actionPerformed
public void actionPerformed(ActionEvent e)
- Method to handle events for the ActionListener interface.
- Parameters:
- e - java.awt.event.ActionEvent
connEtoC1
private void connEtoC1(WindowEvent arg1)
- connEtoC1: (NavalBattleEntry.window.windowClosing(java.awt.event.WindowEvent) --> NavalBattleEntry.dispose()V)
- Parameters:
- arg1 - java.awt.event.WindowEvent
connEtoC2
private void connEtoC2(ActionEvent arg1)
- connEtoC2: (NewGame.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.newGame_ActionEvents(Ljava.awt.event.ActionEvent;)V)
- Parameters:
- arg1 - java.awt.event.ActionEvent
connEtoC3
private void connEtoC3(ActionEvent arg1)
- connEtoC3: (JoinGameButton.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.joinGameButton_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
- Parameters:
- arg1 - java.awt.event.ActionEvent
connEtoC4
private void connEtoC4(ActionEvent arg1)
- connEtoC4: (QuitterMenuItem.action.actionPerformed(java.awt.event.ActionEvent) --> NavalBattleEntry.quitterMenuItem_ActionPerformed(Ljava.awt.event.ActionEvent;)V)
- Parameters:
- arg1 - java.awt.event.ActionEvent
getBuilderData
private static void getBuilderData()
getContentsPane
private Panel getContentsPane()
- Return the ContentsPane property value.
- Returns:
- java.awt.Panel
getDisposeBoats1
private DisposeBoats getDisposeBoats1()
- Return the DisposeBoats1 property value.
- Returns:
- NavalBattle.DisposeBoats
getFile
private Menu getFile()
- Return the Menu1 property value.
- Returns:
- java.awt.Menu
getFrameNbJoueurs1
private FrameNbJoueurs getFrameNbJoueurs1()
- Return the FrameNbJoueurs1 property value.
- Returns:
- NavalBattle.FrameNbJoueurs
getJoinGameButton
private Button getJoinGameButton()
- Return the Button2 property value.
- Returns:
- java.awt.Button
getLabelNickName
private Label getLabelNickName()
- Return the Label1 property value.
- Returns:
- java.awt.Label
getLabelServeur
private Label getLabelServeur()
- Return the LabelNickName1 property value.
- Returns:
- java.awt.Label
getNavalBattleEntryBorderLayout
private BorderLayout getNavalBattleEntryBorderLayout()
- Return the NavalBattleEntryBorderLayout property value.
- Returns:
- java.awt.BorderLayout
getNavalBattleEntryMenuBar
private MenuBar getNavalBattleEntryMenuBar()
- Return the NavalBattleEntryMenuBar property value.
- Returns:
- java.awt.MenuBar
getNewGame
private Button getNewGame()
- Return the Button1 property value.
- Returns:
- java.awt.Button
getQuitterMenuItem
private MenuItem getQuitterMenuItem()
- Return the QuitterMenuItem property value.
- Returns:
- java.awt.MenuItem
getTextFieldNickName
private TextField getTextFieldNickName()
- Return the TextField1 property value.
- Returns:
- java.awt.TextField
getTextFieldServer
private TextField getTextFieldServer()
- Return the TextFieldNickName1 property value.
- Returns:
- java.awt.TextField
handleException
private void handleException(Throwable exception)
- Called whenever the part throws an exception.
- Parameters:
- exception - java.lang.Throwable
initClient
public boolean initClient()
- Initialisation comme client
- Parameters:
- serverHostName - java.lang.String
initConnections
private void initConnections()
- Initializes connections
initialize
private void initialize()
- Initialize the class.
initServer
public boolean initServer()
- Initialisation comme Serveur
joinGameButton_ActionPerformed
public void joinGameButton_ActionPerformed(ActionEvent evt)
- Rejoindre un jeu comme client RMI
main
public static void main(String args[])
- Entree de l'Application
- Parameters:
- args - java.lang.String[]
newGame_ActionEvents
public void newGame_ActionEvents(ActionEvent evt)
- Creer un jeu comme Serveur RMI
quitterMenuItem_ActionPerformed
public void quitterMenuItem_ActionPerformed(ActionEvent actionEvent)
- Quitter !
setNbJoueurs
public void setNbJoueurs(int nbj)
- Accesseur du nombre de joueurs
- Parameters:
- nbj - int
setNickName
boolean setNickName(TextField txt)
- Modifieur Pseudo
setServer
boolean setServer(TextField serv)
- modifieur du nom de machine serveur
showErreur
public void showErreur(String label)
- Quand Erreur
- Parameters:
- label - java.lang.String
windowActivated
public void windowActivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosed
public void windowClosed(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosing
public void windowClosing(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowIconified
public void windowIconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowOpened
public void windowOpened(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
All Packages Class Hierarchy This Package Previous Next Index