public class SimpleTarget extends BasicLinearMover implements Target
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alive
True if this SimpleTarget is alive.
|
currentSpeed, destination, FORM, lastStopLocation, NaP, startMoveTime, velocityeventList, propertyDEFAULT_ENTITY_NAME, DEFAULT_EVENT_NAME, DEFAULT_PRIORITY, EVENT_METHOD_PREFIX, NL| Constructor and Description |
|---|
SimpleTarget() |
SimpleTarget(java.awt.geom.Point2D location,
double maxSpeed)
Creates a new instance of SimpleTarget starting at the given location
with the given maximum speed.
|
SimpleTarget(java.lang.String name,
java.awt.geom.Point2D location,
double maxSpeed)
Creates a new instance of SimpleTarget starting at the given location
with the given maximum speed and the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doHit(Damage damage)
Does nothing.
|
void |
doKill()
Kills this Target.
|
void |
doRun()
Fires a propertyChange for "alive"
|
boolean |
isAlive()
Returns true if this Target is alive.
|
void |
reset()
Returns this to its original location, and makes it alive.
|
java.lang.String |
toString()
A default string description of this entity, name (Entity Priority)
<list of all properties as key = value pairs>
|
doEndMove, doMoveTo, doMoveTo, doOrderStop, doStartMove, doStop, getCurrentLocation, getCurrentSpeed, getDestination, getInitialLocation, getLastStopLocation, getMaxSpeed, getStartMoveTime, getVelocity, isMoving, paramString, setInitialLocation, setMaxSpeedcoldReset, dumpDoMethods, dumpDoMethodsStr, dumpNamesAndSignatures, dumpNamesAndSignaturesStr, getFullMethodName, getSignatureString, handleSimEvent, isAssignableFrom, isDebug, processSimEvent, setDebug, stopAtTime, stopOnTimeaddPropertyChangeListener, addPropertyChangeListener, attemptSchedule, clearAddedProperty, compareTo, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAddedProperties, getEventList, getEventListID, getName, getPriority, getPropertiesString, getProperty, getProperty, getPropertyChangeListeners, getSerial, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, isClearAddedPropertiesOnReset, isJustDefinedProperties, isPersistant, isReRunnable, isVerbose, parametersMatch, removePropertyChangeListener, removePropertyChangeListener, resetNextSerial, setClearAddedPropertiesOnReset, setEventList, setEventListID, setJustDefinedProperties, setName, setPersistant, setPriority, setProperty, setVerbose, waitDelay, waitDelay, waitDelay, waitDelayaddSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoStartMove, doStop, getCurrentLocation, getMaxSpeed, getVelocitygetEventListID, setEventListIDaddSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListenerprocessSimEventisPersistant, isReRunnable, setPersistantgetEventList, getPriority, getSerial, handleSimEvent, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, setPriority, waitDelay, waitDelayaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getAddedProperties, getProperty, getProperty, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPropertypublic SimpleTarget()
public SimpleTarget(java.awt.geom.Point2D location,
double maxSpeed)
location - given locationmaxSpeed - given maximum speedpublic SimpleTarget(java.lang.String name,
java.awt.geom.Point2D location,
double maxSpeed)
name - given namelocation - given locationmaxSpeed - given maximum speedpublic void reset()
reset in interface ReRunnablereset in class BasicLinearMoverpublic void doRun()
doRun in class BasicLinearMoverpublic void doHit(Damage damage)
public boolean isAlive()
public void doKill()
public java.lang.String toString()
BasicSimEntitytoString in class BasicLinearMover