Rev 403 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 403 | Rev 411 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | 22 | ||
23 | public int get_field_from_act(int pos) |
23 | public int get_field_from_act(int pos) |
Line 24... | Line 24... | ||
24 | { return field[act_paramset][pos]; } |
24 | { return field[act_paramset][pos]; } |
- | 25 | ||
- | 26 | public void set_field_from_act(int pos,int val) |
|
- | 27 | { |
|
25 | 28 | if (val>255) val=255; |
|
- | 29 | if (val<0) val=255; |
|
Line 26... | Line 30... | ||
26 | public void set_field_from_act(int pos,int val) |
30 | field[act_paramset][pos]=val; |
27 | { field[act_paramset][pos]=val; } |
31 | } |
28 | 32 | ||
29 | 33 | ||
Line -... | Line 34... | ||
- | 34 | public void field_from_act_add(int pos,int val) |
|
30 | public void field_from_act_add(int pos,int val) |
35 | { |
31 | { |
36 | set_field_from_act(pos , get_field_from_act(pos)+val); |
32 | field[act_paramset][pos]+=val; |
37 | } |
33 | } |
38 |