org.micropsi.comp.world.objects
Class NettleObject
java.lang.Object
org.micropsi.comp.world.objects.AbstractObjectPart
org.micropsi.comp.world.objects.AbstractObject
org.micropsi.comp.world.objects.AbstractCommonObject
org.micropsi.comp.world.objects.PlantObject
org.micropsi.comp.world.objects.NettleObject
- All Implemented Interfaces:
- VisualFeatureIF, WorldMessageHandlerIF
- public class NettleObject
- extends PlantObject
$Header $
| Fields inherited from class org.micropsi.comp.world.objects.AbstractObjectPart |
containingPart, id, objectClass, optionalProperties, orientationAngle, partHierarchyLevel, position, requiredProperties, sizeNumberFormat, subParts, world, xSize, ySize, zSize |
|
Constructor Summary |
NettleObject(org.w3c.dom.Element configData,
Logger logger)
|
NettleObject(java.lang.String objectName,
java.lang.String objectClass,
Position pos)
Constructor for ShockPodBushObject. |
| Methods inherited from class org.micropsi.comp.world.objects.PlantObject |
getGrowRate, getHeight, getMaxHeight, getMaxWaterContent, getWaterContent, init, setGrowRate, setMaxHeight, setMaxWaterContent, setWaterContent, toString |
| Methods inherited from class org.micropsi.comp.world.objects.AbstractObject |
_remove, defaultState, getLastChange, getMoveVector, getObjectIdentification, getObjectName, getState, getState, getWeight, isPersistent, logChange, rotateBy, scaleBy, setMoveVector, setObjectName, setPosition, setSize, setState, setWeight, toMTreeNode, toXMLElement, toXMLElement |
| Methods inherited from class org.micropsi.comp.world.objects.AbstractObjectPart |
_setSize, addLowLevePartsTo, addOptionalProperty, addRequiredProperty, addSubPart, addSubPartRelative, addSubPartsToMTreeNode, createPropertyCollection, getContainingObject, getContainingPart, getDistinctSizes, getId, getLogger, getNextObjectId, getObjectClass, getOptionalProperties, getOrientationAngle, getPartHierarchyLevel, getPosition, getProperties, getSize, getXSize, getYSize, getZSize, handleMessage, hasSubParts, initSubobjects, isAlive, isHighLevelObject, isLowLevelPart, moveBy, moveTo, originatorsMatchSubParts, originatorsMatchSubParts, removeSubPart, rotateToAngle, scaleBy, scaleSubpartsBy, setContainingPart, setDistinctSizes, setObjectClass, setPartHierarchyLevel, setProperties, setProperty, setRequiredProperties, setSize, triggerSubPartChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NettleObject
public NettleObject(java.lang.String objectName,
java.lang.String objectClass,
Position pos)
- Constructor for ShockPodBushObject.
- Parameters:
objectName - objectClass - pos -
NettleObject
public NettleObject(org.w3c.dom.Element configData,
Logger logger)
throws MicropsiException
initProperties
protected void initProperties()
- Overrides:
initProperties in class PlantObject
initObjectParameters
protected void initObjectParameters()
- Overrides:
initObjectParameters in class PlantObject
initObjectState
protected void initObjectState()
- Overrides:
initObjectState in class AbstractObject
_handleMessage
public void _handleMessage(AbstractWorldMessage m)
- Overrides:
_handleMessage in class PlantObject
- See Also:
org.micropsi.comp.world.WorldMessageHandlerIF#handleMessage(WorldMessage)
getNettlings
public int getNettlings()
- Returns the nettlings.
- Returns:
- int
setNettlings
public void setNettlings(int nettlings)
- Sets the nettlings.
- Parameters:
nettlings -
getMaxNettlings
public int getMaxNettlings()
- Returns the maxNettlings.
- Returns:
- int
getNettleDamage
public int getNettleDamage()
- Returns the nettleDamage.
- Returns:
- int
.