Protege-2000 1.7

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

Field Summary
protected  double _xVelocity
           
protected  double _yVelocity
           
 
Fields inherited from class edu.stanford.smi.protegex.layout.ActorDelegateImpl
_actor, _location
 
Fields inherited from interface edu.stanford.smi.protegex.layout.ActorMovementHandler
ZERO_VELOCITY
 
Constructor Summary
StandardActorMovementHandler(Actor actor)
           
 
Method Summary
protected  void calculateNewPosition(int elapsedTime)
           
 boolean collidesWithActor(Actor actor)
           
 void collideWithActor(Actor actor)
           
 Object copy()
           
 boolean getBounces()
           
 double getXVelocity()
           
 double getYVelocity()
           
 void setBounces(boolean bounces)
           
 void setXVelocity(double xVelocity)
           
 void setYVelocity(double yVelocity)
           
 void tick(int currentTime)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.ActorDelegateImpl
getActor, setActor, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protegex.layout.ActorDelegate
getActor, setActor, setLocation
 

Field Detail

_xVelocity

protected double _xVelocity

_yVelocity

protected double _yVelocity
Constructor Detail

StandardActorMovementHandler

public StandardActorMovementHandler(Actor actor)
Method Detail

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

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.