|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWarrior
public class Warrior
Implementacion de los personajes que apareceran en el escenario de juego.
Field Summary | |
---|---|
private int |
px
Posicion X del personaje. |
private int |
py
Posicion Y del personaje. |
private int |
team
Equipo al que pertenece el personaje. |
Constructor Summary | |
---|---|
Warrior(int t,
int x,
int y)
Crea una instancia de un personaje (warrior). |
Method Summary | |
---|---|
int |
getX()
Entrega la posicion en X. |
int |
getY()
Entrega la posicion en Y. |
void |
move_l()
Mover a la izquierda. |
void |
move_r()
Mover a la derecha. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int px
private int py
private int team
Constructor Detail |
---|
public Warrior(int t, int x, int y)
t
- Team: equipo al que pertenece.x
- Posicion X inicial.y
- Posicion Y inicial.Method Detail |
---|
public void move_l()
public void move_r()
public int getX()
public int getY()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |