project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/TeamIngameAttributes.java
equal
deleted
inserted
replaced
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 } |