Subversion Repositories FlightCtrl

Rev

Rev 303 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 303 Rev 314
Line 11... Line 11...
11
 
11
 
Line 12... Line 12...
12
public class MKParamsParser
12
public class MKParamsParser
Line 13... Line 13...
13
 
13
 
Line -... Line 14...
-
 
14
{
-
 
15
 
-
 
16
    public final static int MAX_PARAMSETS=20;
-
 
17
 
-
 
18
    public int[][] field;
-
 
19
    public String[] names={"Paramset 1","Paramset 2","Paramset 3","Paramset 4","Paramset 5"};
-
 
20
 
-
 
21
    public int act_paramset=0;
-
 
22
 
-
 
23
 
-
 
24
    public int field_from_act(int pos)
-
 
25
    {
-
 
26
        return field[act_paramset][pos];
-
 
27
    }
-
 
28
 
-
 
29
    public void field_from_act_add(int pos,int val)
-
 
30
    {
-
 
31
        field[act_paramset][pos]+=val;
-
 
32
    }
-
 
33
 
Line 14... Line 34...
14
{
34
    public void field_from_act_xor(int pos,int val)
15
 
35
    {
16
    public int[] field;
36
        field[act_paramset][pos]^=val;
-
 
37
    }
17
 
38
 
18
 
39
    public MKParamsParser()
Line 19... Line 40...
19
    public MKParamsParser()
40
    {
Line 20... Line 41...
20
    {
41
        field=new int[MAX_PARAMSETS][58];
21
        field=new int[58];
42
        for (int ii=0;ii<MAX_PARAMSETS;ii++)
22
        for (int i=0;i<58;i++)
43
            for (int i=0;i<58;i++)
23
            field[i]=-1;
44
                field[ii][i]=-1;
-
 
45
 
-
 
46
    }
-
 
47
 
-
 
48
    public void set_by_mk_data(int paramset_num,int[] in_arr,MKVersion version)
-
 
49
    {
-
 
50
        for ( int i=0;i<58;i++)
24
 
51
            field[paramset_num][i]=in_arr[i];
Line 25... Line 52...
25
    }
52
        names[paramset_num]="" + (paramset_num+1) +": ";