|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlogica.Pieza
public class Pieza
| Field Summary | |
|---|---|
protected byte |
alto
|
protected byte |
ancho
|
protected int[][] |
forma
|
protected byte |
left
|
protected Paleta |
paleta
|
protected byte |
top
|
protected int |
VACIO
|
| Constructor Summary | |
|---|---|
Pieza(int[][] forma,
Paleta paleta)
|
|
Pieza(int[][] forma,
Paleta paleta,
byte left)
|
|
Pieza(int[][] forma,
Paleta paleta,
byte left,
byte top)
|
|
| Method Summary | |
|---|---|
boolean |
cabePieza(Tablero tablero)
|
boolean |
cabePieza(Tablero tablero,
byte left,
byte top)
|
byte |
calcularAncho(int[][] forma)
|
protected boolean |
calcularColision(Tablero tablero)
|
void |
dibujar(javax.swing.JPanel contenedor)
|
byte |
getAlto()
|
byte |
getAncho()
|
int[][] |
getForma()
|
byte |
getLeft()
|
Paleta |
getPaleta()
|
byte |
getTop()
|
void |
mover(Tablero tablero,
byte left,
byte top)
|
void |
moverAbajo(Tablero tablero)
|
void |
moverDerecha(Tablero tablero)
|
void |
moverIzquierda(Tablero tablero)
|
void |
rotarDerecha(Tablero tablero)
|
void |
rotarIzquierda(Tablero tablero)
|
protected void |
setAlto(byte alto)
|
protected void |
setAncho(byte ancho)
|
protected void |
setForma(int[][] forma)
|
protected void |
setLeft(byte left)
|
protected void |
setPaleta(Paleta paleta)
|
protected void |
setTop(byte top)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte ancho
protected byte alto
protected byte left
protected byte top
protected int[][] forma
protected Paleta paleta
protected final int VACIO
| Constructor Detail |
|---|
public Pieza(int[][] forma,
Paleta paleta)
public Pieza(int[][] forma,
Paleta paleta,
byte left)
public Pieza(int[][] forma,
Paleta paleta,
byte left,
byte top)
| Method Detail |
|---|
protected void setForma(int[][] forma)
public int[][] getForma()
protected void setPaleta(Paleta paleta)
public Paleta getPaleta()
protected void setAncho(byte ancho)
public byte getAncho()
public byte calcularAncho(int[][] forma)
protected void setAlto(byte alto)
public byte getAlto()
protected void setLeft(byte left)
public byte getLeft()
protected void setTop(byte top)
public byte getTop()
public void moverIzquierda(Tablero tablero)
public void moverDerecha(Tablero tablero)
public void moverAbajo(Tablero tablero)
public void mover(Tablero tablero,
byte left,
byte top)
protected boolean calcularColision(Tablero tablero)
public void rotarIzquierda(Tablero tablero)
public void rotarDerecha(Tablero tablero)
public boolean cabePieza(Tablero tablero)
public boolean cabePieza(Tablero tablero,
byte left,
byte top)
public void dibujar(javax.swing.JPanel contenedor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||