Merge branch 'master' of github.com:sagidayan/Far-Out
This commit is contained in:
commit
7a43d77ef4
1 changed files with 48 additions and 34 deletions
|
@ -1,34 +1,48 @@
|
||||||
package com.sagi.dayan.Games.Utils;
|
package com.sagi.dayan.Games.Utils;
|
||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by sagi on 3/18/16.
|
* Created by sagi on 3/18/16.
|
||||||
*/
|
*/
|
||||||
public class WaveConfigs {
|
public class WaveConfigs {
|
||||||
public static final int DEMO = 0;
|
public static final int DEMO = 0;//, UPPER_MIDDLE_LEFT=0, UPPER_MIDDLE_RIGHT=1;
|
||||||
Vector<WaveConfig> configs;
|
//public static final int UPPER_LEFT = 2, UPPER_RIGHT=3;
|
||||||
|
Vector<WaveConfig> configs;
|
||||||
public WaveConfigs(){
|
|
||||||
configs = new Vector<>();
|
public WaveConfigs(){
|
||||||
// int[] moveVector, double stepDelay, int acc, int staryX, int startY
|
configs = new Vector<>();
|
||||||
configs.add(new WaveConfig(new int[]{90,90,120, 120, 150, 150, 270, 270, 270} , 0.5, 8,500 , 0));
|
// int[] moveVector, double stepDelay, int acc, int staryX, int startY
|
||||||
|
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
//middle top to left top
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
configs.add(new WaveConfig(new int[]{90,90,120, 120, 150, 150, 270} , 0.5, 8,500 , -30));
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
//middle top to right top
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
configs.add(new WaveConfig(new int[]{90,90, 60, 60, 30, 30, 270} , 0.5, 8,500 , -30));
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
//top left to middle top
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
configs.add(new WaveConfig(new int[]{90,90, 60, 60, 30, 30, 270} , 0.5, 8,100 , -30));
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
|
||||||
// configs.add(new WaveConfig( , , , , ));
|
//top right to middle top
|
||||||
}
|
configs.add(new WaveConfig(new int[]{90,90,120, 120, 150, 150, 270} , 0.5, 8,900 , -30));
|
||||||
|
|
||||||
public WaveConfig getWaveConfig(int config){
|
//right buttom to middle buttom
|
||||||
if (config < 0 || configs.size() <= config)
|
configs.add(new WaveConfig(new int[]{270,270,300, 300, 330, 330, 90} , 0.5, 8,100 , 0));
|
||||||
throw new IllegalArgumentException("no such config...");
|
|
||||||
return configs.get(config);
|
//left buttom to middle buttom
|
||||||
}
|
configs.add(new WaveConfig(new int[]{270,270,240, 240, 210, 210, 90} , 0.5, 8,900 , 0));
|
||||||
}
|
|
||||||
|
//middle right to middle right
|
||||||
|
configs.add(new WaveConfig(new int[]{180,180,180,90, 90, 0} , 0.5, 8,1010 , 400));
|
||||||
|
|
||||||
|
//middle left to middle left
|
||||||
|
configs.add(new WaveConfig(new int[]{0,0,0,90, 90, 180} , 0.5, 8,-30 , 400));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public WaveConfig getWaveConfig(int config){
|
||||||
|
if (config < 0 || configs.size() <= config)
|
||||||
|
throw new IllegalArgumentException("no such config...");
|
||||||
|
return configs.get(config);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue