vue
Class AffichagePionsPris
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
vue.AffichagePionsPris
- All Implemented Interfaces:
- java.lang.Runnable, javax.microedition.lcdui.CommandListener
public class AffichagePionsPris
- extends javax.microedition.lcdui.Canvas
- implements javax.microedition.lcdui.CommandListener, java.lang.Runnable
Affiche la liste des pions pris par le joueur
Fields inherited from class javax.microedition.lcdui.Canvas |
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
Method Summary |
private void |
afficherScores()
Affiche les pions pris par le joueur |
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable arg1)
Gère la pression des commande prédéfinies |
protected void |
keyPressed(int code)
Capture les clics et pressions sur les touches
parcourt l'arborescence de pions pris |
protected void |
paint(javax.microedition.lcdui.Graphics g)
Dessine le menu. |
void |
run()
|
Methods inherited from class javax.microedition.lcdui.Canvas |
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, setCommandListener, setFullScreenMode, showNotify, sizeChanged |
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setTicker, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
policeTexte
private static final javax.microedition.lcdui.Font policeTexte
couleurTexte
private static final int couleurTexte
- See Also:
- Constant Field Values
largeurEcran
private static int largeurEcran
hauteurEcran
private static int hauteurEcran
positionDepartMenu
private static int positionDepartMenu
espaceEntreElementsDuMenu
private static final int espaceEntreElementsDuMenu
menuThread
private java.lang.Thread menuThread
background
private javax.microedition.lcdui.Image background
index
private int index
display
private javax.microedition.lcdui.Display display
menuInGame
private MenuInGame menuInGame
stratego
private Stratego stratego
listeNomsPionsPris
private java.lang.String[] listeNomsPionsPris
commandeRetour
private javax.microedition.lcdui.Command commandeRetour
AffichagePionsPris
public AffichagePionsPris(javax.microedition.lcdui.Display display,
MenuInGame menuInGame,
Stratego stratego)
- Constructeur
- Parameters:
display
- instance de Display pour afficher une fenêtremenuInGame
- instance du menu précédentstratego
- instance du stratego
afficherScores
private void afficherScores()
- Affiche les pions pris par le joueur
commandAction
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable arg1)
- Gère la pression des commande prédéfinies
- Specified by:
commandAction
in interface javax.microedition.lcdui.CommandListener
paint
protected void paint(javax.microedition.lcdui.Graphics g)
- Dessine le menu.
- Specified by:
paint
in class javax.microedition.lcdui.Canvas
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
keyPressed
protected void keyPressed(int code)
- Capture les clics et pressions sur les touches
parcourt l'arborescence de pions pris
- Overrides:
keyPressed
in class javax.microedition.lcdui.Canvas
- See Also:
Canvas.keyPressed(int)