com.springrts.ai.oo
Class ClbUnitDefCollisionVolumeImpl

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

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


Method Summary
 int compareTo(ClbUnitDefCollisionVolumeImpl other)
           
 boolean equals(Object otherObject)
           
 AIFloat3 getOffsets()
          The collision volume's offset relative to the unit'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 getUnitDefId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUnitDefId

public int getUnitDefId()

compareTo

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

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 unit'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