objects
Class School
java.lang.Object
|
+--objects.WhatWhere
|
+--objects.School
- All Implemented Interfaces:
- Destroyable, Extensible, Locatable, Serializable, Targetable
- public class School
- extends WhatWhere
- implements Destroyable
The WhatWhere representation of a school.
- Version:
- $Revision: 1.8 $
- Author:
- Dave Jurgens
- See Also:
- Serialized Form
|
Constructor Summary |
School()
|
School(double xcoord,
double ycoord)
|
School(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
SCHOOL_SIZE
protected static final objects.Dimension SCHOOL_SIZE
destroyed
private boolean destroyed
targeted
private boolean targeted
School
public School()
School
public School(objects.Location loc)
School
public School(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.