Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
382 ligi 1
public class MixerManager
2
{
3
 
4
    String[] names={"Hexa","Hexa2","Octo","Octo-U","Octo2","Octo3","Quadro","Quadro-X"};
5
    int[][] arrays={{64,64,0,64,64,64,-64,-64,64,-64,-64,64,64,-64,0,-64,64,-64,64,64,64,64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,0,64,64,64,-64,-64,64,-64,-64,64,64,-64,0,-64,64,-64,64,64,64,64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,64,64,64,64,-64,-64,64,64,-64,64,64,-64,-64,-64,64,-64,-64,64,64,-64,64,-64,64,-64,64,64,64,64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,0,64,64,64,-64,-64,64,0,-64,64,64,-64,-64,-64,64,-64,0,64,64,-64,64,-64,64,0,64,64,64,64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,0,64,64,64,-64,-64,64,0,-64,64,64,-64,-64,-64,64,-64,0,64,64,-64,64,-64,64,0,64,64,64,64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,0,64,64,64,0,-64,64,0,-64,64,64,0,-64,-64,64,-64,0,64,64,-64,0,-64,64,0,64,64,64,0,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,0,64,64,-64,0,64,64,0,-64,-64,64,0,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},{64,64,64,64,64,-64,-64,64,64,64,-64,-64,64,-64,64,-64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
6
 
7
 
8
    public int[] bytes(byte id)
9
    {
10
        int[] res= new int[1+12+12*4];
11
 
12
        res[0]=1;
13
        for ( int i=1;i<13;i++)
14
            try
15
                {
16
                    res[i]=(byte)names[id].charAt(i-1);
17
                }
18
            catch (Exception e)
19
                {
20
                    res[i] =0;
21
                }
22
 
23
        for ( int i=0;i<12*4;i++)
24
            res[1+12+i]=arrays[id][i];
25
 
26
        return res;
27
    }
28
 
29
}