com.springrts.ai.oo
Class FeatureDef

java.lang.Object
  extended by com.springrts.ai.oo.FeatureDef
All Implemented Interfaces:
Comparable<FeatureDef>

public class FeatureDef
extends Object
implements Comparable<FeatureDef>


Method Summary
 int compareTo(FeatureDef other)
           
 boolean equals(Object otherObject)
           
 CollisionVolume getCollisionVolume()
           
 float getContainedResource(Resource c_resourceId)
           
 Map<String,String> getCustomParams()
           
 String getDeathFeature()
          Name of the FeatureDef that this turns into when killed (not reclaimed).
 String getDescription()
           
 int getDrawType()
           
 int getFeatureDefId()
           
 String getFileName()
           
 float getMass()
          Used to see if the object can be overrun by units of a certain heavyness
 float getMaxHealth()
           
 String getModelName()
           
 String getName()
           
 float getReclaimTime()
           
 int getResurrectable()
          Used to determine whether the feature is resurrectable.
 int getSmokeTime()
           
 int getXSize()
          Size of the feature along the X axis - in other words: height.
 int getZSize()
          Size of the feature along the Z axis - in other words: width.
 int hashCode()
           
 boolean isBlocking()
           
 boolean isBurnable()
           
 boolean isDestructable()
           
 boolean isFloating()
           
 boolean isGeoThermal()
           
 boolean isNoSelect()
           
 boolean isReclaimable()
           
 boolean isUpright()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getFeatureDefId

public int getFeatureDefId()

compareTo

public int compareTo(FeatureDef other)
Specified by:
compareTo in interface Comparable<FeatureDef>

equals

public boolean equals(Object otherObject)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()

getDescription

public String getDescription()

getFileName

public String getFileName()

getContainedResource

public float getContainedResource(Resource c_resourceId)

getMaxHealth

public float getMaxHealth()

getReclaimTime

public float getReclaimTime()

getMass

public float getMass()
Used to see if the object can be overrun by units of a certain heavyness


isUpright

public boolean isUpright()

getDrawType

public int getDrawType()

getModelName

public String getModelName()

getResurrectable

public int getResurrectable()
Used to determine whether the feature is resurrectable.

Returns:
-1: (default) only if it is the 1st wreckage of the UnitDef it originates from 0: no, never 1: yes, always

getSmokeTime

public int getSmokeTime()

isDestructable

public boolean isDestructable()

isReclaimable

public boolean isReclaimable()

isBlocking

public boolean isBlocking()

isBurnable

public boolean isBurnable()

isFloating

public boolean isFloating()

isNoSelect

public boolean isNoSelect()

isGeoThermal

public boolean isGeoThermal()

getDeathFeature

public String getDeathFeature()
Name of the FeatureDef that this turns into when killed (not reclaimed).


getXSize

public int getXSize()
Size of the feature along the X axis - in other words: height. each size is 8 units


getZSize

public int getZSize()
Size of the feature along the Z axis - in other words: width. each size is 8 units


getCustomParams

public Map<String,String> getCustomParams()

getCollisionVolume

public CollisionVolume getCollisionVolume()