Main
Objeto principal que inicia y gestiona la aplicación Tetris.
Este objeto extiende SimpleSwingApplication, proporcionando la estructura básica para una aplicación gráfica en Scala. Gestiona la alternancia entre el menú principal y la pantalla de juego, controla la música, maneja eventos de teclado y pantalla completa.
Attributes
- Graph
-
- Supertypes
-
class SimpleSwingApplicationclass SwingApplicationtrait Reactorclass Objecttrait Matchableclass AnyShow all
- Self type
-
Main.type
Members list
Value members
Concrete methods
Devuelve la puntuación más alta registrada.
Devuelve la puntuación más alta registrada.
Attributes
- Returns
-
El valor del récord personal
Crea y configura la ventana principal de la aplicación.
Crea y configura la ventana principal de la aplicación.
Attributes
- Returns
-
Frame que contiene la interfaz principal
Actualiza y guarda la puntuación más alta si la puntuación actual la supera.
Actualiza y guarda la puntuación más alta si la puntuación actual la supera.
Value parameters
- score
-
La puntuación actual para comparar con el récord
Attributes
Inherited methods
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
Attributes
- Inherited from:
- Reactor
Listen to the given publisher as long as deafTo
isn't called for them.
Listen to the given publisher as long as deafTo
isn't called for them.
Attributes
- Inherited from:
- Reactor
Initializes the application and runs the given program.
Initializes the application and runs the given program.
Attributes
- Inherited from:
- SwingApplication
Finalizes the application by calling shutdown
and exits.
Finalizes the application by calling shutdown
and exits.
Attributes
- Inherited from:
- SwingApplication
Attributes
- Inherited from:
- SimpleSwingApplication
Attributes
- Inherited from:
- SimpleSwingApplication
Called before the application is exited. Override to customize.
Called before the application is exited. Override to customize.
Attributes
- Inherited from:
- SwingApplication
Calls top
, packs the frame, and displays it.
Calls top
, packs the frame, and displays it.
Attributes
- Definition Classes
-
SimpleSwingApplication -> SwingApplication
- Inherited from:
- SimpleSwingApplication
Inherited fields
All reactions of this reactor.
All reactions of this reactor.
Attributes
- Inherited from:
- Reactor