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, velocity
eventList, property
DEFAULT_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, setMaxSpeed
coldReset, dumpDoMethods, dumpDoMethodsStr, dumpNamesAndSignatures, dumpNamesAndSignaturesStr, getFullMethodName, getSignatureString, handleSimEvent, isAssignableFrom, isDebug, processSimEvent, setDebug, stopAtTime, stopOnTime
addPropertyChangeListener, 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, waitDelay
addSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
doStartMove, doStop, getCurrentLocation, getMaxSpeed, getVelocity
getEventListID, setEventListID
addSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListener
processSimEvent
isPersistant, isReRunnable, setPersistant
getEventList, getPriority, getSerial, handleSimEvent, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, setPriority, waitDelay, waitDelay
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getAddedProperties, getProperty, getProperty, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setProperty
public 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 ReRunnable
reset
in class BasicLinearMover
public void doRun()
doRun
in class BasicLinearMover
public void doHit(Damage damage)
public boolean isAlive()
public void doKill()
public java.lang.String toString()
BasicSimEntity
toString
in class BasicLinearMover