objects
Class Bus
java.lang.Object
|
+--objects.WhatWhere
|
+--objects.MovableWhatWhere
|
+--objects.Bus
- All Implemented Interfaces:
- Destroyable, Extensible, Locatable, Movable, Serializable, Targetable
- public class Bus
- extends MovableWhatWhere
- implements Destroyable
The WhatWhere representation of a bus.
- Version:
- $Revision: 1.10 $
- Author:
- Dave Jurgens
- See Also:
- Serialized Form
|
Constructor Summary |
Bus()
|
Bus(double xcoord,
double ycoord)
|
Bus(objects.Location loc)
|
| Methods inherited from class objects.WhatWhere |
bound, getCenter, getDimensions, getDistance, getHeight, getLoc, getWidth, isEastOf, isNorthOf, isSouthOf, isWestOf, overlaps |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
BUS_SIZE
private static final objects.Dimension BUS_SIZE
destroyed
private boolean destroyed
targeted
private boolean targeted
Bus
public Bus()
Bus
public Bus(objects.Location loc)
Bus
public Bus(double xcoord,
double ycoord)
isTargeted
public boolean isTargeted()
- Description copied from interface:
Targetable
- Returns whether this object is currently targeted.
- Specified by:
isTargeted in interface Targetable
setAsTargeted
public void setAsTargeted()
- Description copied from interface:
Targetable
- Marks this object as targeted.
- Specified by:
setAsTargeted in interface Targetable
setAsUntargeted
public void setAsUntargeted()
- Description copied from interface:
Targetable
- Marks this object as untargeted.
- Specified by:
setAsUntargeted in interface Targetable
destroy
public void destroy()
- Description copied from interface:
Destroyable
- Marks this object as being destroyed.
- Specified by:
destroy in interface Destroyable
isDestroyed
public boolean isDestroyed()
- Description copied from interface:
Destroyable
- Returns whether this object has been destroyed.
- Specified by:
isDestroyed in interface Destroyable
toString
public String toString()
- Overrides:
toString in class Object
To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.