|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeux.Entity
jeux.Player
public class Player
Field Summary | |
---|---|
private boolean |
fireOn
Vrai si le joeur peut-tirer, faux sinon. |
private int |
fireSpeed
La vitesse du tir, tout les fireSpeed tours le joueur peut-tirer |
private int |
vx
La vitesse horizontale |
Fields inherited from class jeux.Entity |
---|
height, markedForRemoval, speed, spriteName, t, width, world, x, y |
Constructor Summary | |
---|---|
Player(World world)
|
|
Player(World world,
int fireSpeed)
|
Method Summary | |
---|---|
void |
act()
L'action d'une entité par défaut aucune action |
void |
fire()
Si le joeur peut tirer alors un boulet (Bullet) est créé. |
void |
moveLeft()
|
void |
moveRight()
|
Methods inherited from class jeux.Entity |
---|
getBounds, getHeight, getSpeed, getSpriteName, getWidth, getX, getY, isMarkedForRemoval, setHeight, setMarkedForRemoval, setSpeed, setSpriteName, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int vx
private int fireSpeed
private boolean fireOn
Constructor Detail |
---|
public Player(World world)
public Player(World world, int fireSpeed)
Method Detail |
---|
public void act()
Entity
act
in class Entity
public void fire()
public void moveLeft()
public void moveRight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |