org.micropsi.comp.world.objects
Class NettleObject

java.lang.Object
  extended byorg.micropsi.comp.world.objects.AbstractObjectPart
      extended byorg.micropsi.comp.world.objects.AbstractObject
          extended byorg.micropsi.comp.world.objects.AbstractCommonObject
              extended byorg.micropsi.comp.world.objects.PlantObject
                  extended byorg.micropsi.comp.world.objects.NettleObject
All Implemented Interfaces:
VisualFeatureIF, WorldMessageHandlerIF

public class NettleObject
extends PlantObject

$Header $


Field Summary
 
Fields inherited from class org.micropsi.comp.world.objects.PlantObject
growRate, maxHeight, maxWaterContent, waterContent
 
Fields inherited from class org.micropsi.comp.world.objects.AbstractCommonObject
damage, maxDamage
 
Fields inherited from class org.micropsi.comp.world.objects.AbstractObject
lastChange, moveVector, objectName, persistent, state, weight
 
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.
 
Method Summary
 void _handleMessage(AbstractWorldMessage m)
           
 int getMaxNettlings()
          Returns the maxNettlings.
 int getNettleDamage()
          Returns the nettleDamage.
 int getNettlings()
          Returns the nettlings.
protected  void initObjectParameters()
           
protected  void initObjectState()
           
protected  void initProperties()
           
 void setNettlings(int nettlings)
          Sets the nettlings.
 
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.AbstractCommonObject
breakToPeaces, handleMessageAgentAction, setDamage, setMaxDamage, takeDamage
 
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
 

Constructor Detail

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
Method Detail

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

(c) by Micropsi Project: http://www.cognitive-agents.org

.