project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/TeamIngameAttributes.java
changeset 7508 763d3961400b
parent 7485 0481bd74267c
child 7584 7831c84cc644
equal deleted inserted replaced
7504:ed1d52c5aa94 7508:763d3961400b
    26 		this.colorIndex = colorIndex;
    26 		this.colorIndex = colorIndex;
    27 		this.hogCount = hogCount;
    27 		this.hogCount = hogCount;
    28 		this.remoteDriven = remoteDriven;
    28 		this.remoteDriven = remoteDriven;
    29 	}
    29 	}
    30 	
    30 	
    31 	public static int randomColorIndex(int[] illegalColors){
    31 	public static int randomColorIndex(int[] illegalColors) {
    32 		Random rnd = new Random();
    32 		Random rnd = new Random();
    33 		ArrayList<Integer> legalcolors = new ArrayList<Integer>();
    33 		ArrayList<Integer> legalcolors = new ArrayList<Integer>();
    34 		for(int i=0; i<TEAM_COLORS.length; i++) {
    34 		for(int i=0; i<TEAM_COLORS.length; i++) {
    35 			legalcolors.add(i);
    35 			legalcolors.add(i);
    36 		}
    36 		}