com.springrts.ai.oo
Class Shield

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

public class Shield
extends Object
implements Comparable<Shield>


Method Summary
 int compareTo(Shield other)
           
 boolean equals(Object otherObject)
           
 float getAlpha()
          The shields alpha value.
 AIFloat3 getBadColor()
          The color of the shield when it is empty.
 float getForce()
          Shield acceleration on plasma stuff.
 AIFloat3 getGoodColor()
          The color of the shield when it is at full power.
 int getInterceptType()
          The type of the shield (bitfield).
 float getMaxSpeed()
          Maximum speed to which the shield can repulse plasma.
 float getPower()
          Amount of damage the shield can reflect.
 float getPowerRegen()
          Amount of power that is regenerated per second.
 float getPowerRegenResource(Resource c_resourceId)
          How much of a given resource is needed to regenerate power with max speed per second.
 float getRadius()
          Size of shield covered area
 int getRechargeDelay()
          Number of frames to delay recharging by after each hit.
 float getResourceUse(Resource c_resourceId)
          Amount of the resource used per shot or per second, depending on the type of projectile.
 float getStartingPower()
          How much power the shield has when it is created.
 int getWeaponDefId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getWeaponDefId

public int getWeaponDefId()

compareTo

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

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

getResourceUse

public float getResourceUse(Resource c_resourceId)
Amount of the resource used per shot or per second, depending on the type of projectile.


getRadius

public float getRadius()
Size of shield covered area


getForce

public float getForce()
Shield acceleration on plasma stuff. How much will plasma be accelerated into the other direction when it hits the shield.


getMaxSpeed

public float getMaxSpeed()
Maximum speed to which the shield can repulse plasma.


getPower

public float getPower()
Amount of damage the shield can reflect. (0=infinite)


getPowerRegen

public float getPowerRegen()
Amount of power that is regenerated per second.


getPowerRegenResource

public float getPowerRegenResource(Resource c_resourceId)
How much of a given resource is needed to regenerate power with max speed per second.


getStartingPower

public float getStartingPower()
How much power the shield has when it is created.


getRechargeDelay

public int getRechargeDelay()
Number of frames to delay recharging by after each hit.


getGoodColor

public AIFloat3 getGoodColor()
The color of the shield when it is at full power.


getBadColor

public AIFloat3 getBadColor()
The color of the shield when it is empty.


getAlpha

public float getAlpha()
The shields alpha value.


getInterceptType

public int getInterceptType()
The type of the shield (bitfield). Defines what weapons can be intercepted by the shield.

See Also:
getInterceptedByShieldType()