Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jdstar
Class Player  view Player download Player.java

java.lang.Object
  extended byjdstar.Actor
      extended byjdstar.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
           
 
Constructor Summary
Player(Input input, Board board, javax.swing.JLabel status)
           
 
Method Summary
 void go()
           
 void inputEvent(InputEvent evt)
           
(package private)  void refreshBoard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_

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
Constructor Detail

Player

public Player(Input input,
              Board board,
              javax.swing.JLabel status)
Method Detail

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