jdstar
Class Player

java.lang.Object
jdstar.Actor
jdstar.Player
- All Implemented Interfaces:
- InputListener
- public class Player
- extends Actor
|
Field Summary |
private static boolean |
_
|
protected int |
action
|
protected static double |
ACTOR_STEP
How much space should actor travel between game loop updates. |
protected Board |
board
|
static int |
BUDDY
|
(package private) int |
newx
|
(package private) double |
newX
|
(package private) int |
newy
|
(package private) double |
newY
|
static int |
PLAYER
|
protected javax.swing.JLabel |
status
|
protected int |
x
|
protected double |
X
|
(package private) double |
X0
|
protected int |
y
|
protected double |
Y
|
(package private) double |
Y0
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_
private static final boolean _
- See Also:
- Constant Field Values
newX
double newX
newY
double newY
newx
int newx
newy
int newy
X0
double X0
Y0
double Y0
ACTOR_STEP
protected static final double ACTOR_STEP
- How much space should actor travel between game loop updates.
- See Also:
- Constant Field Values
PLAYER
public static final int PLAYER
- See Also:
- Constant Field Values
BUDDY
public static final int BUDDY
- See Also:
- Constant Field Values
board
protected Board board
status
protected javax.swing.JLabel status
action
protected int action
x
protected int x
y
protected int y
X
protected double X
Y
protected double Y
Player
public Player(Input input,
Board board,
javax.swing.JLabel status)
go
public void go()
- Specified by:
go in class Actor
refreshBoard
void refreshBoard()
inputEvent
public void inputEvent(InputEvent evt)
- Specified by:
inputEvent in interface InputListener