Rev 502 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 502 | Rev 503 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | implements MKParamDefinitions |
12 | implements MKParamDefinitions |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | { |
14 | { |
- | 15 | ||
Line 15... | Line 16... | ||
15 | 16 | public final static int MAX_PARAMSETS=20; |
|
16 | public final static int MAX_PARAMSETS=20; |
17 | public final static int MAX_PARAMLENGTH=70; |
Line 17... | Line 18... | ||
17 | 18 | ||
Line 43... | Line 44... | ||
43 | field[act_paramset][pos]^=val; |
44 | field[act_paramset][pos]^=val; |
44 | } |
45 | } |
Line 45... | Line 46... | ||
45 | 46 | ||
46 | public MKParamsParser() |
47 | public MKParamsParser() |
47 | { |
48 | { |
48 | field=new int[MAX_PARAMSETS][65]; |
49 | field=new int[MAX_PARAMSETS][MAX_PARAMLENGTH]; |
49 | for (int ii=0;ii<MAX_PARAMSETS;ii++) |
50 | for (int ii=0;ii<MAX_PARAMSETS;ii++) |
50 | for (int i=0;i<65;i++) |
51 | for (int i=0;i<MAX_PARAMLENGTH;i++) |
Line 51... | Line 52... | ||
51 | field[ii][i]=-1; |
52 | field[ii][i]=-1; |
Line 82... | Line 83... | ||
82 | names[paramset_num]+=(char)in_arr[i]; |
83 | names[paramset_num]+=(char)in_arr[i]; |
83 | } |
84 | } |
84 | break; |
85 | break; |
Line 85... | Line 86... | ||
85 | 86 | ||
86 | case 6: |
- | |
87 | case 7: |
87 | case 6: |
88 | for ( int i=0;i<65;i++) |
88 | for ( int i=0;i<65;i++) |
89 | field[paramset_num][i]=in_arr[i]; |
89 | field[paramset_num][i]=in_arr[i]; |
90 | names[paramset_num]="" + (paramset_num+1) +": "; |
90 | names[paramset_num]="" + (paramset_num+1) +": "; |
91 | for ( int i=53;i<65;i++) |
91 | for ( int i=53;i<65;i++) |
92 | { |
92 | { |
93 | if(in_arr[i]==0)break; |
93 | if(in_arr[i]==0)break; |
94 | names[paramset_num]+=(char)in_arr[i]; |
94 | names[paramset_num]+=(char)in_arr[i]; |
95 | } |
95 | } |
- | 96 | break; |
|
- | 97 | case 7: |
|
- | 98 | for ( int i=0;i<70;i++) |
|
- | 99 | field[paramset_num][i]=in_arr[i]; |
|
- | 100 | names[paramset_num]="" + (paramset_num+1) +": "; |
|
- | 101 | for ( int i=58;i<70;i++) |
|
- | 102 | { |
|
- | 103 | if(in_arr[i]==0)break; |
|
- | 104 | names[paramset_num]+=(char)in_arr[i]; |
|
- | 105 | } |
|
Line 96... | Line 106... | ||
96 | break; |
106 | break; |
97 | 107 |