erland.game.tileadventure
Class MoveAction

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

public class MoveAction
extends Action


Field Summary
static Vector3D DOWN
           
static Vector3D EAST
           
static Vector3D NONE
           
static Vector3D NORTH
           
static Vector3D SOUTH
           
static Vector3D UP
           
static Vector3D WEST
           
 
Fields inherited from class erland.game.tileadventure.Action
DROP, JUMP, MOVE_DOWN, MOVE_EAST, MOVE_NORTH, MOVE_SOUTH, MOVE_WEST, PUSH_EAST, PUSH_NORTH, PUSH_SOUTH, PUSH_WEST
 
Constructor Summary
MoveAction(ControllerInterface controller, Vector3D direction)
           
 
Method Summary
 boolean perform()
           
 void start()
           
 void stop()
           
 
Methods inherited from class erland.game.tileadventure.Action
getController, getDirection, isMove, isPush, setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEST

public static final Vector3D WEST

EAST

public static final Vector3D EAST

NORTH

public static final Vector3D NORTH

SOUTH

public static final Vector3D SOUTH

UP

public static final Vector3D UP

DOWN

public static final Vector3D DOWN

NONE

public static final Vector3D NONE
Constructor Detail

MoveAction

public MoveAction(ControllerInterface controller,
                  Vector3D direction)
Method Detail

start

public void start()
Specified by:
start in interface ActionInterface
Overrides:
start in class Action

stop

public void stop()
Specified by:
stop in interface ActionInterface
Overrides:
stop in class Action

perform

public boolean perform()
Specified by:
perform in interface ActionInterface
Overrides:
perform in class Action


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