com.springrts.ai.oo
Class ClbFeatureDefCollisionVolumeImpl

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

public class ClbFeatureDefCollisionVolumeImpl
extends Object
implements CollisionVolume, Comparable<ClbFeatureDefCollisionVolumeImpl>


Method Summary
 int compareTo(ClbFeatureDefCollisionVolumeImpl other)
           
 boolean equals(Object otherObject)
           
 int getFeatureDefId()
           
 AIFloat3 getOffsets()
          The collision volume's offset relative to the feature's center position
 AIFloat3 getScales()
          The collision volume's full axis lengths.
 int getTest()
          Collission test algorithm used.
 String getType()
          The type of the collision volume's form.
 int hashCode()
           
 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(ClbFeatureDefCollisionVolumeImpl other)
Specified by:
compareTo in interface Comparable<ClbFeatureDefCollisionVolumeImpl>

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

getType

public String getType()
The type of the collision volume's form.

Specified by:
getType in interface CollisionVolume
Returns:
"Ell" "Cyl[T]" (where [T] is one of ['X', 'Y', 'Z']) "Box"

getScales

public AIFloat3 getScales()
The collision volume's full axis lengths.

Specified by:
getScales in interface CollisionVolume

getOffsets

public AIFloat3 getOffsets()
The collision volume's offset relative to the feature's center position

Specified by:
getOffsets in interface CollisionVolume

getTest

public int getTest()
Collission test algorithm used.

Specified by:
getTest in interface CollisionVolume
Returns:
0: discrete 1: continuous