vue
Class MenuChoisirProfil

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by vue.MenuChoisirProfil
All Implemented Interfaces:
java.lang.Runnable

public class MenuChoisirProfil
extends javax.microedition.lcdui.Canvas
implements java.lang.Runnable

Affiche le menu permettant de choisir son profil ( couleur ) avant de lancer une partie solo


Field Summary
private  javax.microedition.lcdui.Image background
           
private  boolean choisirCouleur
           
private static int contourTexteSelectionne
           
private  java.lang.String couleurChoisie
           
private static int couleurTexteNonSelectionne
           
private static int couleurTexteSelectionne
           
private  javax.microedition.lcdui.Display display
           
private static int espaceEntreElementsDuMenu
           
private static int hauteurEcran
           
private static int largeurEcran
           
private  java.lang.String[] mainMenu
           
private static int menuIdx
           
private  MenuInGame menuInGameSource
           
private  MenuChoisirMode menuSource
           
private  java.lang.Thread menuThread
           
private static javax.microedition.lcdui.Font policeTexteNonSelectionne
           
private static javax.microedition.lcdui.Font policeTexteSelectionne
           
private static int positionDepartMenu
           
private  Stratego stratego
           
 
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
 
Constructor Summary
MenuChoisirProfil(javax.microedition.lcdui.Display display, MenuChoisirMode source, Stratego stratego, java.lang.Thread thread)
          Constructeur utilisé à partir de menu de choix du mode de jeu
MenuChoisirProfil(javax.microedition.lcdui.Display display, MenuInGame source, Stratego stratego, java.lang.Thread thread)
          Constructeur utilisé à partir d'une partie en cours
 
Method Summary
private  void afficherMenu()
           
protected  void keyPressed(int code)
          Capture les clics et pressions sur les touches
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
 

Field Detail

policeTexteNonSelectionne

private static final javax.microedition.lcdui.Font policeTexteNonSelectionne

policeTexteSelectionne

private static final javax.microedition.lcdui.Font policeTexteSelectionne

couleurTexteNonSelectionne

private static final int couleurTexteNonSelectionne
See Also:
Constant Field Values

couleurTexteSelectionne

private static final int couleurTexteSelectionne
See Also:
Constant Field Values

contourTexteSelectionne

private static final int contourTexteSelectionne
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

menuIdx

private static int menuIdx

menuThread

private java.lang.Thread menuThread

background

private javax.microedition.lcdui.Image background

mainMenu

private java.lang.String[] mainMenu

choisirCouleur

private boolean choisirCouleur

couleurChoisie

private java.lang.String couleurChoisie

display

private javax.microedition.lcdui.Display display

stratego

private Stratego stratego

menuSource

private MenuChoisirMode menuSource

menuInGameSource

private MenuInGame menuInGameSource
Constructor Detail

MenuChoisirProfil

public MenuChoisirProfil(javax.microedition.lcdui.Display display,
                         MenuChoisirMode source,
                         Stratego stratego,
                         java.lang.Thread thread)
Constructeur utilisé à partir de menu de choix du mode de jeu

Parameters:
display - instance de Display pour afficher une fenêtre
source - menu source
stratego - instance du Stratego

MenuChoisirProfil

public MenuChoisirProfil(javax.microedition.lcdui.Display display,
                         MenuInGame source,
                         Stratego stratego,
                         java.lang.Thread thread)
Constructeur utilisé à partir d'une partie en cours

Parameters:
display - instance de Display pour afficher une fenêtre
source - menu source
stratego - instance du Stratego
Method Detail

afficherMenu

private void afficherMenu()

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

Overrides:
keyPressed in class javax.microedition.lcdui.Canvas
Parameters:
code - code de la touche