erland.game.tileadventure
Class Action

java.lang.Object
  extended by erland.game.tileadventure.Action
All Implemented Interfaces:
ActionInterface
Direct Known Subclasses:
MoveAction

public class Action
extends Object
implements ActionInterface


Field Summary
static ActionInterface DROP
           
static Action JUMP
           
static Action MOVE_DOWN
           
static Action MOVE_EAST
           
static Action MOVE_NORTH
           
static Action MOVE_SOUTH
           
static Action MOVE_WEST
           
static Action NONE
           
static Action PUSH_EAST
           
static Action PUSH_NORTH
           
static Action PUSH_SOUTH
           
static Action PUSH_WEST
           
 
Constructor Summary
protected Action()
           
 
Method Summary
 ControllerInterface getController()
           
 Direction getDirection()
           
 boolean isMove()
           
 boolean isPush()
           
 boolean perform()
           
 void setController(ControllerInterface controller)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final Action NONE

MOVE_WEST

public static final Action MOVE_WEST

MOVE_EAST

public static final Action MOVE_EAST

MOVE_NORTH

public static final Action MOVE_NORTH

MOVE_SOUTH

public static final Action MOVE_SOUTH

MOVE_DOWN

public static final Action MOVE_DOWN

PUSH_WEST

public static final Action PUSH_WEST

PUSH_EAST

public static final Action PUSH_EAST

PUSH_NORTH

public static final Action PUSH_NORTH

PUSH_SOUTH

public static final Action PUSH_SOUTH

JUMP

public static final Action JUMP

DROP

public static final ActionInterface DROP
Constructor Detail

Action

protected Action()
Method Detail

isMove

public boolean isMove()

isPush

public boolean isPush()

getDirection

public Direction getDirection()

setController

public void setController(ControllerInterface controller)

getController

public ControllerInterface getController()
Specified by:
getController in interface ActionInterface

start

public void start()
Specified by:
start in interface ActionInterface

stop

public void stop()
Specified by:
stop in interface ActionInterface

perform

public boolean perform()
Specified by:
perform in interface ActionInterface


Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.