Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

public class MixerManager
{

    String[] names={"Hexa","Hexa2","Octo","Octo-U","Octo2","Octo3","Quadro","Quadro-X"};
    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}};


    public int[] bytes(byte id)
    {
        int[] res= new int[1+12+12*4];

        res[0]=1;
        for ( int i=1;i<13;i++)
            try
                {
                    res[i]=(byte)names[id].charAt(i-1);
                }
            catch (Exception e)
                {
                    res[i] =0;
                }

        for ( int i=0;i<12*4;i++)
            res[1+12+i]=arrays[id][i];
       
        return res;
    }
   
}