2013-07-22 07:05:40 +02:00
|
|
|
package icbm.api;
|
|
|
|
|
|
|
|
import universalelectricity.core.vector.Vector3;
|
|
|
|
|
|
|
|
/**
|
2013-07-23 00:24:55 +02:00
|
|
|
* Implement this to your entity if you want antiballistic missiles to be able to lock onto it.
|
2013-07-22 07:05:40 +02:00
|
|
|
*
|
|
|
|
* @author Calclavia
|
|
|
|
*
|
|
|
|
*/
|
2013-07-23 00:24:55 +02:00
|
|
|
public interface IMissileLockable
|
|
|
|
{
|
2013-07-22 07:05:40 +02:00
|
|
|
/**
|
|
|
|
* Can this entity be locked on by a missile?
|
|
|
|
*
|
|
|
|
* @return True if so.
|
|
|
|
*/
|
|
|
|
public boolean canLock(IMissile missile);
|
|
|
|
|
|
|
|
/**
|
2013-07-23 00:24:55 +02:00
|
|
|
* Gets the predicted position of this entity after a specified amount of ticks.
|
2013-07-22 07:05:40 +02:00
|
|
|
*
|
2013-07-23 00:24:55 +02:00
|
|
|
* @param ticks - The amount of time.
|
|
|
|
* @return The predicted Vector, or if not predictable, the current position.
|
2013-07-22 07:05:40 +02:00
|
|
|
*/
|
|
|
|
public Vector3 getPredictedPosition(int ticks);
|
|
|
|
}
|