Blame |
Last modification |
View Log
| RSS feed
public class MotorTester
extends org.
ligi.
ufo.
ParamsClass
{
public final static int MAX_ENGINES=
12;
int[] engine_field
;
public void set_field_from_act
(int pos,
int val
)
{
engine_field
[pos
]=val
;
}
public int get_field_from_act
(int pos
)
{
return engine_field
[pos
];
}
public MotorTester
()
{
engine_field=
new int[MAX_ENGINES
];
tab_stringids=
null; // no tabs
field_strings=
new String[1][MAX_ENGINES
];
field_positions=
new int[1][MAX_ENGINES
];
field_types=
new int[1][MAX_ENGINES
];
for (int i=
0;i
<MAX_ENGINES
;i++
)
{
field_strings
[0][i
]=
"Engine " +
(i+
1);
field_positions
[0][i
]=i
;
field_types
[0][i
]=PARAMTYPE_BYTE
;
}
}
}