|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.Box
modelling.ObstacleBox
Box impossible to run on when checking for collisions.
| Field Summary |
| Fields inherited from class sema.Box |
g, image, map, x, y |
| Constructor Summary | |
ObstacleBox(Map map,
Drawing drawing,
int x,
int y,
float height,
java.lang.String kind,
java.awt.Image image)
|
|
| Method Summary | |
void |
draw()
Draws the Box.
|
boolean |
isFreeFor(Element e)
Determinate whether the Box can host the Element.
|
| Methods inherited from class sema.Box |
drawBorder, fill, getContents, getHeight, getIcon, getImage, getKind, getProperties, highlight, highlight, register, setProperties, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObstacleBox(Map map,
Drawing drawing,
int x,
int y,
float height,
java.lang.String kind,
java.awt.Image image)
| Method Detail |
public boolean isFreeFor(Element e)
BoxBox can host the Element.
Very useful to design obstacles or restricted areas.
However, some special agents could ignore the advice of the box.
isFreeFor in class Boxe - the element to host.
Box can host the Element.public void draw()
Box.
if the image is set it draw the image.
draw in class Box
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||