public class BasicEntity extends OdorWorldEntity
Constructor and Description |
---|
BasicEntity(Animation anim,
OdorWorld world)
Construct a basic entity with a specified animation.
|
BasicEntity(OdorWorld world)
Construct a default entity.
|
BasicEntity(java.lang.String imageLocation,
OdorWorld world)
Construct a basic entity with a single image location.
|
Modifier and Type | Method and Description |
---|---|
ComboBoxWrapper |
getType()
Getter which returns data that can be used in a combo box (the property
editor dialog).
|
void |
setImage(java.lang.String fileName)
Set type of object.
|
void |
setType(ComboBoxWrapper imageData)
Setter which takes the data from a combo box as an argument.
|
void |
update()
Updates this OdorWorldEntity's Animation and its position based on the
velocity.
|
addEffector, addSensor, addTileSensors, addTileSensors, applyEffectors, collideHorizontal, collideVertical, getAnimation, getBehavior, getBounds, getCenterLocation, getCenterX, getCenterY, getCurrentlyHeardPhrases, getDoubleX, getDoubleY, getEffectors, getHeight, getId, getImage, getLocation, getName, getParentWorld, getReducedBounds, getSensors, getSmellSource, getVelocityX, getVelocityY, getWidth, getX, getY, hasCollided, isBlocked, isEffectorsEnabled, isInBoundsX, isInBoundsY, isSensorsEnabled, isShowSensors, moveEast, moveNorth, moveSouth, moveWest, postSerializationInit, removeEffector, removeSensor, setAnimation, setCenterLocation, setEffectors, setEffectorsEnabled, setHasCollided, setId, setLocation, setName, setSensors, setSensorsEnabled, setShowSensors, setSmellSource, setVelocityX, setVelocityY, setX, setX, setY, setY, speakToEntity, updateSensors, updateSmellSource
public BasicEntity(Animation anim, OdorWorld world)
anim
- animation associated with this entity.world
- parent world.public BasicEntity(OdorWorld world)
world
- public BasicEntity(java.lang.String imageLocation, OdorWorld world)
imageLocation
- image locationworld
- public void update()
OdorWorldEntity
update
in class OdorWorldEntity
public ComboBoxWrapper getType()
public void setType(ComboBoxWrapper imageData)
imageData
- the data from the combo boxpublic void setImage(java.lang.String fileName)
fileName
- file name. //TODO! Better doc