org.micropsi.comp.world.objects
Class ShockPodBushObject

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.ShockPodBushObject
All Implemented Interfaces:
VisualFeatureIF, WorldMessageHandlerIF

public class ShockPodBushObject
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
ShockPodBushObject(org.w3c.dom.Element configData, Logger logger)
           
ShockPodBushObject(java.lang.String objectName, java.lang.String objectClass, Position pos)
          Constructor for ShockPodBushObject.
 
Method Summary
 void _handleMessage(AbstractWorldMessage m)
           
 int getMaxShockPods()
          Returns the maxShockPods.
 int getShockPodDamage()
          Returns the shockPodDamage.
 int getShockPods()
          Returns the shockPods.
protected  void initObjectParameters()
           
protected  void initObjectState()
           
protected  void initProperties()
           
 void setShockPods(int shockPods)
          Sets the shockPods.
 
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

ShockPodBushObject

public ShockPodBushObject(java.lang.String objectName,
                          java.lang.String objectClass,
                          Position pos)
Constructor for ShockPodBushObject.

Parameters:
objectName -
objectClass -
pos -

ShockPodBushObject

public ShockPodBushObject(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)

getShockPods

public int getShockPods()
Returns the shockPods.

Returns:
int

setShockPods

public void setShockPods(int shockPods)
Sets the shockPods.

Parameters:
shockPods - The shockPods to set

getMaxShockPods

public int getMaxShockPods()
Returns the maxShockPods.

Returns:
int

getShockPodDamage

public int getShockPodDamage()
Returns the shockPodDamage.

Returns:
int

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

.