edu.stanford.smi.protegex.layout
Class StandardActorMovementHandler
java.lang.Object
|
+--edu.stanford.smi.protegex.layout.ActorDelegateImpl
|
+--edu.stanford.smi.protegex.layout.StandardActorMovementHandler
- All Implemented Interfaces:
- ActorDelegate, ActorMovementHandler, Copyable
- public final class StandardActorMovementHandler
- extends ActorDelegateImpl
- implements ActorMovementHandler
Description of the class
- Author:
- William Grosso
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_xVelocity
protected double _xVelocity
_yVelocity
protected double _yVelocity
StandardActorMovementHandler
public StandardActorMovementHandler(Actor actor)
calculateNewPosition
protected void calculateNewPosition(int elapsedTime)
collidesWithActor
public boolean collidesWithActor(Actor actor)
- Specified by:
collidesWithActor
in interface ActorMovementHandler
collideWithActor
public void collideWithActor(Actor actor)
- Specified by:
collideWithActor
in interface ActorMovementHandler
copy
public Object copy()
- Specified by:
copy
in interface Copyable
getBounces
public boolean getBounces()
- Specified by:
getBounces
in interface ActorMovementHandler
getXVelocity
public double getXVelocity()
- Specified by:
getXVelocity
in interface ActorMovementHandler
getYVelocity
public double getYVelocity()
- Specified by:
getYVelocity
in interface ActorMovementHandler
setBounces
public void setBounces(boolean bounces)
- Specified by:
setBounces
in interface ActorMovementHandler
setXVelocity
public void setXVelocity(double xVelocity)
- Specified by:
setXVelocity
in interface ActorMovementHandler
setYVelocity
public void setYVelocity(double yVelocity)
- Specified by:
setYVelocity
in interface ActorMovementHandler
tick
public void tick(int currentTime)
- Specified by:
tick
in interface ActorMovementHandler
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.