|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmilionario.Milionario
public class Milionario
Crea tutte le finestre ed ascolta gli eventi.
Constructor Summary | |
---|---|
Milionario(boolean musicEnabled,
boolean soundEnabled)
Costruttore |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
|
protected void |
aumentaValore()
|
protected void |
createDialogs()
Crea le finestre secondarie di gioco |
protected void |
createFrames()
Crea le finestre principali di gioco. |
protected Domanda |
estraiDomanda()
Estra la domanda |
protected void |
loadNumeroDomande()
Carica il file contenente il numero di domande per livello. |
protected void |
loadVettoreDomande()
Carica il file con le domande del gioco. |
protected void |
playSound(java.lang.String suono)
Riproduce un suono memorizzato in un file .wav |
protected void |
registerListener()
|
protected void |
reset()
|
protected Domanda |
searchDomanda(int n)
Cerca la domanda nel vettore delle domande |
protected void |
setupComponents()
Crea i pannelli di gioco. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Milionario(boolean musicEnabled, boolean soundEnabled)
musicEnabled
- true per abilitare la riproduzione della musica di sottofondo.soundEnabled
- true per abilitare gli effetti sonori.Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
protected void aumentaValore()
protected void createDialogs()
protected void createFrames()
protected Domanda estraiDomanda()
protected void loadNumeroDomande() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected void loadVettoreDomande() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected void playSound(java.lang.String suono)
suono
- suono da riprodurreprotected void registerListener()
protected void reset()
protected Domanda searchDomanda(int n)
n
- numero identificativo della domanda
protected void setupComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |