Main

scalatetris.Main
object Main extends SimpleSwingApplication

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 SimpleSwingApplication
class SwingApplication
trait Reactor
class Object
trait Matchable
class Any
Show all
Self type
Main.type

Members list

Value members

Concrete methods

def getHighScore: Int

Devuelve la puntuación más alta registrada.

Devuelve la puntuación más alta registrada.

Attributes

Returns

El valor del récord personal

def top: Frame

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

def updateHighScore(score: Int): Unit

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

def deafTo(ps: Publisher*): Unit

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
def listenTo(ps: Publisher*): Unit

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
def main(args: Array[String]): Unit

Initializes the application and runs the given program.

Initializes the application and runs the given program.

Attributes

Inherited from:
SwingApplication
def quit(): Unit

Finalizes the application by calling shutdown and exits.

Finalizes the application by calling shutdown and exits.

Attributes

Inherited from:
SwingApplication
def resourceFromClassloader(path: String): URL

Attributes

Inherited from:
SimpleSwingApplication
def resourceFromUserDirectory(path: String): File

Attributes

Inherited from:
SimpleSwingApplication
def shutdown(): Unit

Called before the application is exited. Override to customize.

Called before the application is exited. Override to customize.

Attributes

Inherited from:
SwingApplication
override def startup(args: Array[String]): Unit

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

val reactions: Reactions

All reactions of this reactor.

All reactions of this reactor.

Attributes

Inherited from:
Reactor