2016-11-19 00:06:55 +01:00
|
|
|
package awlex.ospu.polymover.factory;
|
|
|
|
|
|
|
|
import itdelatrisu.opsu.objects.GameObject;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Awlex on 18.11.2016.
|
|
|
|
*/
|
2016-11-19 02:33:15 +01:00
|
|
|
public interface PolyMoverFactory {
|
2016-11-19 00:06:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param time point in time whose cursor position has to be calculated
|
|
|
|
* @return [x, y]
|
|
|
|
*/
|
2016-11-19 02:33:15 +01:00
|
|
|
double[] getPointAt(int time);
|
2016-11-19 00:06:55 +01:00
|
|
|
|
|
|
|
void init(GameObject[] objects, int startIndex);
|
|
|
|
|
|
|
|
void update(GameObject g);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* How many items the Factory would like to look in the future
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int getPrefferedBufferSize();
|
2016-11-19 02:33:15 +01:00
|
|
|
|
|
|
|
boolean isInitialized();
|
2016-11-19 15:41:53 +01:00
|
|
|
|
|
|
|
int getLatestIndex();
|
2016-11-19 00:06:55 +01:00
|
|
|
}
|