|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.world.odorworld.AbstractEntity
org.simbrain.world.odorworld.Wall
public class Wall
Wall represents a wall in the world.
| Constructor Summary | |
|---|---|
Wall()
Default wall constructor. |
|
Wall(OdorWorld parentWorld)
Creates a wall in OdorWorld. |
|
| Method Summary | |
|---|---|
int |
getBites()
Return the bites. |
int |
getBitesToDie()
Return the bites to die. |
boolean |
getEdible()
Return the edible. |
int |
getHeight()
Return the height. |
Point |
getLocation()
Return the location. |
OdorWorld |
getParent()
Return the parent world. |
Rectangle |
getRectangle()
Return the rectangle. |
Rectangle |
getRectangle(Point p)
Return the rectangle at the point. |
double |
getResurrectionProb()
Return the resurrectin probability. |
Stimulus |
getStimulus()
Return the stimulus. |
int |
getWidth()
Return the width. |
int |
getX()
Return the x. |
int |
getY()
Return the y. |
void |
paintThis(Graphics g)
Implements abstract paintThis() from AbstractEntity. |
void |
setBites(int bites)
Sets the bites. |
void |
setBitesToDie(int bitesToDie)
Sets the bites to die. |
void |
setEdible(boolean edible)
Sets the edible. |
void |
setHeight(int height)
Sets the height. |
void |
setParent(OdorWorld world)
Sets the parent world. |
void |
setResurrectionProb(double resurrectionProb)
Sets the resurrection probability. |
void |
setStimulus(Stimulus theStimulus)
Sets the stimulus. |
void |
setWidth(int width)
Sets the widht. |
void |
setX(int x)
Sets the x. |
void |
setY(int y)
Sets the y. |
void |
terminate()
Terminates an object that is edible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Wall()
public Wall(OdorWorld parentWorld)
parentWorld - Current world| Method Detail |
|---|
public double getResurrectionProb()
getResurrectionProb in class AbstractEntitypublic void setResurrectionProb(double resurrectionProb)
setResurrectionProb in class AbstractEntityresurrectionProb - Resurrection probability valuepublic int getHeight()
getHeight in class AbstractEntitypublic int getWidth()
getWidth in class AbstractEntitypublic int getX()
getX in class AbstractEntitypublic int getY()
getY in class AbstractEntitypublic void setHeight(int height)
height - The heightpublic void setWidth(int width)
width - The widthpublic void setX(int x)
setX in class AbstractEntityx - The xpublic void setY(int y)
setY in class AbstractEntityy - The ypublic Rectangle getRectangle()
getRectangle in class AbstractEntitypublic OdorWorld getParent()
getParent in class AbstractEntitypublic void setParent(OdorWorld world)
setParent in class AbstractEntityworld - The parent worldpublic void paintThis(Graphics g)
paintThis in class AbstractEntityg - the world graphics objectpublic Rectangle getRectangle(Point p)
getRectangle in class AbstractEntityp - Point
public Stimulus getStimulus()
getStimulus in class AbstractEntitypublic void setStimulus(Stimulus theStimulus)
theStimulus - The stimuluspublic Point getLocation()
getLocation in class AbstractEntitypublic int getBitesToDie()
getBitesToDie in class AbstractEntitypublic void setBitesToDie(int bitesToDie)
bitesToDie - The bies to diepublic boolean getEdible()
getEdible in class AbstractEntitypublic void setEdible(boolean edible)
setEdible in class AbstractEntityedible - The ediblepublic int getBites()
getBites in class AbstractEntitypublic void setBites(int bites)
setBites in class AbstractEntitybites - The bitespublic void terminate()
terminate in class AbstractEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||