|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
src.FormularioPrincipal
public class FormularioPrincipal
Nested Class Summary | |
---|---|
private class |
FormularioPrincipal.CerrarVentana
|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
private javax.swing.JButton[] |
botones
|
private javax.swing.JButton[] |
botonesCasas
|
static int |
cantidad_jug
|
private javax.swing.ImageIcon |
casa1h
|
private javax.swing.ImageIcon |
casa1v
|
private javax.swing.ImageIcon |
casa2h
|
private javax.swing.ImageIcon |
casa2v
|
private javax.swing.ImageIcon |
casa3h
|
private javax.swing.ImageIcon |
casa3v
|
private javax.swing.ImageIcon |
casa4h
|
private javax.swing.ImageIcon |
casa4v
|
private javax.sound.sampled.Clip |
clip
|
private javax.sound.sampled.Clip |
clip2
|
private javax.swing.ImageIcon |
Comerciar
|
private CasillaTarjeta |
cTarjeta
|
private Dado |
dado1
|
private Dado |
dado2
|
private int[] |
dineroDebeJugador
|
private int[] |
dineroJugadores
|
private boolean |
doble
|
private Est_Com_Pag |
ecp
|
private int[] |
equilblprop
|
private int |
finjuego
|
private java.lang.String |
historial
|
private javax.swing.ImageIcon |
hotelh
|
private javax.swing.ImageIcon |
hotelv
|
private javax.swing.ImageIcon |
icono1
|
private javax.swing.ImageIcon |
icono2
|
private javax.swing.ImageIcon |
icono3
|
private javax.swing.ImageIcon |
icono4
|
private javax.swing.ImageIcon |
icono5
|
private javax.swing.JLabel |
img_jug5
|
private javax.swing.ImageIcon |
imgBtnFinalizar
|
private javax.swing.ImageIcon |
imgBtnTirar
|
private int |
ini
|
private javax.swing.JButton |
jbtFinalizarTurno
|
private javax.swing.JButton |
jbtnComerciar
|
private javax.swing.JButton |
jbtnTirar
|
private javax.swing.JButton |
jButton1
|
private javax.swing.JButton |
jButton10
|
private javax.swing.JButton |
jButton11
|
private javax.swing.JButton |
jButton12
|
private javax.swing.JButton |
jButton13
|
private javax.swing.JButton |
jButton14
|
private javax.swing.JButton |
jButton15
|
private javax.swing.JButton |
jButton16
|
private javax.swing.JButton |
jButton17
|
private javax.swing.JButton |
jButton18
|
private javax.swing.JButton |
jButton19
|
private javax.swing.JButton |
jButton2
|
private javax.swing.JButton |
jButton20
|
private javax.swing.JButton |
jButton21
|
private javax.swing.JButton |
jButton22
|
private javax.swing.JButton |
jButton3
|
private javax.swing.JButton |
jButton4
|
private javax.swing.JButton |
jButton5
|
private javax.swing.JButton |
jButton6
|
private javax.swing.JButton |
jButton7
|
private javax.swing.JButton |
jButton8
|
private javax.swing.JButton |
jButton9
|
private javax.swing.JCheckBoxMenuItem |
jCheckBoxMenuItemSonido
|
private javax.swing.JTextArea |
jdatosjug7
|
private javax.swing.JTextArea |
jdatosjug8
|
private javax.swing.JTextArea |
jdatosjugador4
|
private javax.swing.JTextArea |
jdatosjugvirtual
|
private javax.swing.JLabel |
jetiquetajugador1
|
private javax.swing.JLabel |
jetiquetajugador2
|
private javax.swing.JLabel |
jetiquetaJugador3
|
private javax.swing.JLabel |
jetiquetaJugador4
|
private javax.swing.JLabel |
jetiquetajugadorvirtual
|
private javax.swing.JFileChooser |
jFileChooser1
|
private javax.swing.JLabel |
jlabelactual
|
javax.swing.JList |
jList1
|
private javax.swing.JMenuItem |
jMenuAbrir
|
private javax.swing.JMenu |
jMenuArchivo
|
private javax.swing.JMenu |
jMenuAyuda
|
private javax.swing.JMenuBar |
jMenuBar1
|
private javax.swing.JMenuItem |
jMenuCargarPartida
|
private javax.swing.JMenu |
jMenuDecisiones
|
private javax.swing.JMenuItem |
jMenuGuardar
|
private javax.swing.JMenuItem |
jMenuItemAbout
|
private javax.swing.JMenuItem |
jMenuItemAmortizar
|
private javax.swing.JMenuItem |
jMenuItemBancarrota
|
private javax.swing.JMenuItem |
jMenuItemComprar
|
private javax.swing.JMenuItem |
jMenuItemContenidoAyuda
|
private javax.swing.JMenuItem |
jMenuItemDesamortizar
|
private javax.swing.JMenuItem |
jMenuItemDocumentacion
|
private javax.swing.JMenuItem |
jMenuItemVender
|
private javax.swing.JMenu |
jMenuJuego
|
private javax.swing.JMenuItem |
jMenuNuevo
|
private javax.swing.JMenuItem |
jMenuPropietarios
|
private javax.swing.JMenuItem |
jMenuSalir
|
private javax.swing.JPanel |
jPanel5
|
private javax.swing.JPanel |
jPanel9
|
private javax.swing.JScrollPane |
jScrollPane1
|
private javax.swing.JScrollPane |
jScrollPane2
|
private javax.swing.JScrollPane |
jScrollPane7
|
private javax.swing.JScrollPane |
jScrollPane8
|
private javax.swing.JScrollPane |
jScrollPane9
|
private javax.swing.JSeparator |
jSeparator1
|
private javax.swing.JSeparator |
jSeparator2
|
private javax.swing.JSeparator |
jSeparator3
|
private javax.swing.JSeparator |
jSeparator4
|
private javax.swing.JSeparator |
jSeparator5
|
private javax.swing.JSeparator |
jSeparator6
|
private javax.swing.JTextArea |
jtxtHistorial
|
static Jugador[] |
juga
|
private javax.swing.JLabel |
lbl1
|
private javax.swing.JLabel |
lbl10
|
private javax.swing.JLabel |
lbl11
|
private javax.swing.JLabel |
lbl12
|
private javax.swing.JLabel |
lbl13
|
private javax.swing.JLabel |
lbl14
|
private javax.swing.JLabel |
lbl15
|
private javax.swing.JLabel |
lbl16
|
private javax.swing.JLabel |
lbl17
|
private javax.swing.JLabel |
lbl18
|
private javax.swing.JLabel |
lbl19
|
private javax.swing.JLabel |
lbl2
|
private javax.swing.JLabel |
lbl20
|
private javax.swing.JLabel |
lbl21
|
private javax.swing.JLabel |
lbl22
|
private javax.swing.JLabel |
lbl23
|
private javax.swing.JLabel |
lbl24
|
private javax.swing.JLabel |
lbl25
|
private javax.swing.JLabel |
lbl26
|
private javax.swing.JLabel |
lbl27
|
private javax.swing.JLabel |
lbl28
|
private javax.swing.JLabel |
lbl3
|
private javax.swing.JLabel |
lbl4
|
private javax.swing.JLabel |
lbl5
|
private javax.swing.JLabel |
lbl6
|
private javax.swing.JLabel |
lbl7
|
private javax.swing.JLabel |
lbl8
|
private javax.swing.JLabel |
lbl9
|
private javax.swing.JLabel[] |
lblPropiedades
|
private int[] |
mon
|
private int |
numj
|
private int |
opcion
|
private javax.swing.JTextArea[] |
paneles
|
private Parkin |
park
|
(package private) static int[] |
posesiones
|
(package private) Propiedad |
prop
|
private int |
Propiedad
|
private int |
rondaActual
|
private int |
sum
|
private int |
suma
|
protected Tablero |
t
|
private int |
triple
|
static int |
turno
|
private int |
Turno
|
private boolean |
virtual
|
private boolean |
visible
|
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FormularioPrincipal()
|
Method Summary | |
---|---|
void |
actualizarInterfaz(int val)
Actualiza los valores de los paneles informativos que contienen la informacion de los jugadores |
void |
bancarrota(boolean eleccion)
Se declara la bancarrota del jugador |
void |
cartas_comunidad()
Se controlan aqui las tarjetas comunidad |
void |
cartas_suerte()
Aqui se controlan las tarjetas de suerte |
static boolean |
cerrarArchivo(java.io.FileWriter archivo)
Metodo que libera el flujo de datos del fichero creado y lo cierra. |
void |
comprarCasa()
Este metodo permite la edificacion de las casas, dependiendo del monopolio que se posea |
void |
comprarPropiedad(int numj,
int ap,
int numCas)
Realiza la compra de cualquier propiedad, ya sea estacion, propiedad o compañias |
static java.io.FileWriter |
crearArchivo(java.lang.String archivo)
Metodo que permite crear un fichero de tipo FileWriter |
void |
deshipotecar(int numCasilla)
|
void |
empezar()
Inicializa el historial con los valores de los jugadores actuales al finalizar su turno |
static boolean |
escribirArchivo(java.lang.String cadena,
java.io.FileWriter fw)
Metodo que permite escribir el historico en un fichero de texto |
private void |
findeljuego()
Controla el numero de rondas para finalizar la partida |
private void |
formMouseClicked(java.awt.event.MouseEvent evt)
|
int |
getCantidadDineroInicial()
|
private boolean |
getDoble()
Metodo inspector que devuelve cuando es doble |
private int |
getTriple()
|
int |
getTurno()
Devuelve el turno del jugador actual |
void |
hipotecar(int numCasilla)
|
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
private void |
jbtFinalizarTurnoActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jbtnComerciarActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jbtnTirarActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jButton10MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton11MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton12MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton13MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton14MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton15MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton16MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton17MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton18MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton19MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton1MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton20MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton21MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton22MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton2MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton3MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton4MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton5MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton6MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton7MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton8MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jButton9MouseExited(java.awt.event.MouseEvent evt)
|
private void |
jCheckBoxMenuItemSonidoActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuAbrirActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuCargarPartidaActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuGuardarActionPerformed(java.awt.event.ActionEvent evt)
Este metodo almacena los datos de los jugadores actuales de cada partida en la base de datos con el uso de la persistencia |
private void |
jMenuItemAboutActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemAmortizarActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemBancarrotaActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemComprarActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemContenidoAyudaActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemDesamortizarActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemDocumentacionActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuItemVenderActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuNuevoActionPerformed(java.awt.event.ActionEvent evt)
Este metodo controla la cantidad de jugadores que se van a añadir a la partida |
private void |
jMenuPropietariosActionPerformed(java.awt.event.ActionEvent evt)
|
private void |
jMenuSalirActionPerformed(java.awt.event.ActionEvent evt)
Cierra el juego a traves del boton salir del menu Archivo pasandole un mensaje de opciones |
void |
jugadorMovido()
Aqui se controla todo el funcionamiento del juego, es decir, el movimiento por todo el tablero, tratamiento de compras, subasta... |
int |
jugar()
Obtiene el valor de los dados, y los añade a suma, que este a su vez los almacena en el historial |
static void |
main(java.lang.String[] args)
|
void |
moverJugador()
Se le pasa el valor de las tiradas de los dados, y posiciona al jugador en la casilla correspondiente. |
boolean |
salirBancarrota()
|
boolean |
salirDeCarcel()
Metodo que actual cuando el jugador actual quiere salir de la carcel |
private void |
setDoble(boolean val)
Metodo inspector que modificar el valor que se le pasa a doble |
private void |
setTriple(int val)
|
void |
setTurno(int val)
|
void |
traspasoDeCasillas(int jugEnv,
int jugRec,
int dinEnv,
int dinRec,
int numCas)
|
void |
venderCasa()
|
Methods inherited from class javax.swing.JFrame |
---|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private Dado dado1
private Dado dado2
public static Jugador[] juga
private int[] mon
static int[] posesiones
private Est_Com_Pag ecp
public javax.swing.JList jList1
private int[] dineroDebeJugador
private int Turno
private int finjuego
private int rondaActual
private int[] dineroJugadores
private javax.swing.JTextArea[] paneles
private int suma
private boolean doble
private int triple
private boolean visible
private int opcion
public static int cantidad_jug
private int Propiedad
private CasillaTarjeta cTarjeta
private int sum
private int ini
private int numj
private boolean virtual
private java.lang.String historial
private Parkin park
private javax.swing.JButton[] botones
private javax.swing.JButton[] botonesCasas
private javax.swing.JLabel[] lblPropiedades
private javax.swing.ImageIcon icono1
private javax.swing.ImageIcon icono2
private javax.swing.ImageIcon icono3
private javax.swing.ImageIcon icono4
private javax.swing.ImageIcon icono5
private javax.swing.ImageIcon casa1h
private javax.swing.ImageIcon casa1v
private javax.swing.ImageIcon casa2h
private javax.swing.ImageIcon casa2v
private javax.swing.ImageIcon casa3h
private javax.swing.ImageIcon casa3v
private javax.swing.ImageIcon casa4h
private javax.swing.ImageIcon casa4v
private javax.swing.ImageIcon hotelh
private javax.swing.ImageIcon hotelv
private javax.swing.ImageIcon imgBtnTirar
private javax.swing.ImageIcon imgBtnFinalizar
private javax.swing.ImageIcon Comerciar
protected Tablero t
Propiedad prop
public static int turno
private int[] equilblprop
private javax.sound.sampled.Clip clip
private javax.sound.sampled.Clip clip2
private javax.swing.JLabel img_jug5
private javax.swing.JButton jButton1
private javax.swing.JButton jButton10
private javax.swing.JButton jButton11
private javax.swing.JButton jButton12
private javax.swing.JButton jButton13
private javax.swing.JButton jButton14
private javax.swing.JButton jButton15
private javax.swing.JButton jButton16
private javax.swing.JButton jButton17
private javax.swing.JButton jButton18
private javax.swing.JButton jButton19
private javax.swing.JButton jButton2
private javax.swing.JButton jButton20
private javax.swing.JButton jButton21
private javax.swing.JButton jButton22
private javax.swing.JButton jButton3
private javax.swing.JButton jButton4
private javax.swing.JButton jButton5
private javax.swing.JButton jButton6
private javax.swing.JButton jButton7
private javax.swing.JButton jButton8
private javax.swing.JButton jButton9
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItemSonido
private javax.swing.JFileChooser jFileChooser1
private javax.swing.JMenuItem jMenuAbrir
private javax.swing.JMenu jMenuArchivo
private javax.swing.JMenu jMenuAyuda
private javax.swing.JMenuBar jMenuBar1
private javax.swing.JMenuItem jMenuCargarPartida
private javax.swing.JMenu jMenuDecisiones
private javax.swing.JMenuItem jMenuGuardar
private javax.swing.JMenuItem jMenuItemAbout
private javax.swing.JMenuItem jMenuItemAmortizar
private javax.swing.JMenuItem jMenuItemBancarrota
private javax.swing.JMenuItem jMenuItemComprar
private javax.swing.JMenuItem jMenuItemContenidoAyuda
private javax.swing.JMenuItem jMenuItemDesamortizar
private javax.swing.JMenuItem jMenuItemDocumentacion
private javax.swing.JMenuItem jMenuItemVender
private javax.swing.JMenu jMenuJuego
private javax.swing.JMenuItem jMenuNuevo
private javax.swing.JMenuItem jMenuPropietarios
private javax.swing.JMenuItem jMenuSalir
private javax.swing.JPanel jPanel5
private javax.swing.JPanel jPanel9
private javax.swing.JScrollPane jScrollPane1
private javax.swing.JScrollPane jScrollPane2
private javax.swing.JScrollPane jScrollPane7
private javax.swing.JScrollPane jScrollPane8
private javax.swing.JScrollPane jScrollPane9
private javax.swing.JSeparator jSeparator1
private javax.swing.JSeparator jSeparator2
private javax.swing.JSeparator jSeparator3
private javax.swing.JSeparator jSeparator4
private javax.swing.JSeparator jSeparator5
private javax.swing.JSeparator jSeparator6
private javax.swing.JButton jbtFinalizarTurno
private javax.swing.JButton jbtnComerciar
private javax.swing.JButton jbtnTirar
private javax.swing.JTextArea jdatosjug7
private javax.swing.JTextArea jdatosjug8
private javax.swing.JTextArea jdatosjugador4
private javax.swing.JTextArea jdatosjugvirtual
private javax.swing.JLabel jetiquetaJugador3
private javax.swing.JLabel jetiquetaJugador4
private javax.swing.JLabel jetiquetajugador1
private javax.swing.JLabel jetiquetajugador2
private javax.swing.JLabel jetiquetajugadorvirtual
private javax.swing.JLabel jlabelactual
private javax.swing.JTextArea jtxtHistorial
private javax.swing.JLabel lbl1
private javax.swing.JLabel lbl10
private javax.swing.JLabel lbl11
private javax.swing.JLabel lbl12
private javax.swing.JLabel lbl13
private javax.swing.JLabel lbl14
private javax.swing.JLabel lbl15
private javax.swing.JLabel lbl16
private javax.swing.JLabel lbl17
private javax.swing.JLabel lbl18
private javax.swing.JLabel lbl19
private javax.swing.JLabel lbl2
private javax.swing.JLabel lbl20
private javax.swing.JLabel lbl21
private javax.swing.JLabel lbl22
private javax.swing.JLabel lbl23
private javax.swing.JLabel lbl24
private javax.swing.JLabel lbl25
private javax.swing.JLabel lbl26
private javax.swing.JLabel lbl27
private javax.swing.JLabel lbl28
private javax.swing.JLabel lbl3
private javax.swing.JLabel lbl4
private javax.swing.JLabel lbl5
private javax.swing.JLabel lbl6
private javax.swing.JLabel lbl7
private javax.swing.JLabel lbl8
private javax.swing.JLabel lbl9
Constructor Detail |
---|
public FormularioPrincipal() throws javax.sound.sampled.LineUnavailableException, javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
javax.sound.sampled.LineUnavailableException
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
Method Detail |
---|
private void initComponents()
private void jCheckBoxMenuItemSonidoActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemAboutActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemDocumentacionActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuPropietariosActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemBancarrotaActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemAmortizarActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemContenidoAyudaActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuCargarPartidaActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemVenderActionPerformed(java.awt.event.ActionEvent evt)
private void jbtFinalizarTurnoActionPerformed(java.awt.event.ActionEvent evt)
private void jButton22MouseExited(java.awt.event.MouseEvent evt)
private void jButton21MouseExited(java.awt.event.MouseEvent evt)
private void jButton20MouseExited(java.awt.event.MouseEvent evt)
private void jButton19MouseExited(java.awt.event.MouseEvent evt)
private void jButton18MouseExited(java.awt.event.MouseEvent evt)
private void jButton17MouseExited(java.awt.event.MouseEvent evt)
private void jButton16MouseExited(java.awt.event.MouseEvent evt)
private void jButton15MouseExited(java.awt.event.MouseEvent evt)
private void jButton14MouseExited(java.awt.event.MouseEvent evt)
private void jButton13MouseExited(java.awt.event.MouseEvent evt)
private void jButton12MouseExited(java.awt.event.MouseEvent evt)
private void jButton11MouseExited(java.awt.event.MouseEvent evt)
private void jButton10MouseExited(java.awt.event.MouseEvent evt)
private void jButton9MouseExited(java.awt.event.MouseEvent evt)
private void jButton8MouseExited(java.awt.event.MouseEvent evt)
private void jButton7MouseExited(java.awt.event.MouseEvent evt)
private void jButton6MouseExited(java.awt.event.MouseEvent evt)
private void jButton5MouseExited(java.awt.event.MouseEvent evt)
private void jButton4MouseExited(java.awt.event.MouseEvent evt)
private void jButton3MouseExited(java.awt.event.MouseEvent evt)
private void jButton2MouseExited(java.awt.event.MouseEvent evt)
public void comprarCasa()
private void jMenuItemComprarActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuItemDesamortizarActionPerformed(java.awt.event.ActionEvent evt)
private void jButton1MouseExited(java.awt.event.MouseEvent evt)
private void jMenuGuardarActionPerformed(java.awt.event.ActionEvent evt)
private void jbtnTirarActionPerformed(java.awt.event.ActionEvent evt)
private void jbtnComerciarActionPerformed(java.awt.event.ActionEvent evt)
private boolean getDoble()
private void setDoble(boolean val)
private int getTriple()
private void setTriple(int val)
public int getTurno()
public void setTurno(int val)
public int getCantidadDineroInicial()
public void moverJugador()
public void jugadorMovido()
public void empezar()
public void actualizarInterfaz(int val)
public int jugar()
public void comprarPropiedad(int numj, int ap, int numCas)
public void cartas_suerte()
public void cartas_comunidad()
public void venderCasa()
private void formMouseClicked(java.awt.event.MouseEvent evt)
private void jMenuNuevoActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuSalirActionPerformed(java.awt.event.ActionEvent evt)
private void jMenuAbrirActionPerformed(java.awt.event.ActionEvent evt)
public void bancarrota(boolean eleccion)
public boolean salirBancarrota()
public void traspasoDeCasillas(int jugEnv, int jugRec, int dinEnv, int dinRec, int numCas)
public void hipotecar(int numCasilla)
public void deshipotecar(int numCasilla)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public boolean salirDeCarcel()
public static java.io.FileWriter crearArchivo(java.lang.String archivo)
public static boolean escribirArchivo(java.lang.String cadena, java.io.FileWriter fw)
public static boolean cerrarArchivo(java.io.FileWriter archivo)
private void findeljuego()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |