Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
382 | ligi | 1 | public class MotorTester |
2 | extends org.ligi.ufo.ParamsClass |
||
3 | { |
||
4 | public final static int MAX_ENGINES=12; |
||
5 | |||
6 | int[] engine_field; |
||
7 | |||
8 | public void set_field_from_act(int pos,int val) |
||
9 | { |
||
10 | engine_field[pos]=val; |
||
11 | } |
||
12 | |||
13 | public int get_field_from_act(int pos) |
||
14 | { |
||
15 | return engine_field[pos]; |
||
16 | } |
||
17 | |||
18 | public MotorTester() |
||
19 | { |
||
20 | |||
21 | engine_field=new int[MAX_ENGINES]; |
||
22 | tab_stringids=null; // no tabs |
||
23 | |||
24 | field_strings=new String[1][MAX_ENGINES]; |
||
25 | field_positions=new int[1][MAX_ENGINES]; |
||
26 | field_types=new int[1][MAX_ENGINES]; |
||
27 | |||
28 | for (int i=0;i<MAX_ENGINES;i++) |
||
29 | { |
||
30 | field_strings[0][i]="Engine " + (i+1); |
||
31 | field_positions[0][i]=i; |
||
32 | field_types[0][i]=PARAMTYPE_BYTE; |
||
33 | } |
||
34 | |||
35 | } |
||
36 | } |