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

Quick Search    Search Deep

jdstar
Class Actor  view Actor download Actor.java

java.lang.Object
  extended byjdstar.Actor
All Implemented Interfaces:
InputListener
Direct Known Subclasses:
Buddy, Player

abstract class Actor
extends java.lang.Object
implements InputListener


Field Summary
private static boolean _
           
protected  int action
           
private  boolean active
           
protected static double ACTOR_STEP
          How much space should actor travel between game loop updates.
protected  Board board
           
static int BUDDY
           
private  int eventCode
           
static int PLAYER
           
protected  javax.swing.JLabel status
           
private  int whoami
           
protected  int x
           
protected  double X
           
protected  int y
           
protected  double Y
           
 
Constructor Summary
protected Actor(int who, Input input, Board board, javax.swing.JLabel status)
           
 
Method Summary
(package private) abstract  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

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

whoami

private int whoami

board

protected Board board

status

protected javax.swing.JLabel status

action

protected int action

active

private boolean active

eventCode

private int eventCode

x

protected int x

y

protected int y

X

protected double X

Y

protected double Y
Constructor Detail

Actor

protected Actor(int who,
                Input input,
                Board board,
                javax.swing.JLabel status)
Method Detail

refreshBoard

void refreshBoard()

inputEvent

public void inputEvent(InputEvent evt)
Specified by:
inputEvent in interface InputListener

go

abstract void go()