15 |
hitstatus[1]=0; |
hitstatus[1]=0; |
16 |
trigger[1]=0; |
trigger[1]=0; |
17 |
} |
} |
18 |
|
|
19 |
|
void AcLevel2::Clear(){ |
20 |
|
status[0]=0; |
21 |
|
hitmap[0]=0; |
22 |
|
hitstatus[0]=0; |
23 |
|
trigger[0]=0; |
24 |
|
status[1]=0; |
25 |
|
hitmap[1]=0; |
26 |
|
hitstatus[1]=0; |
27 |
|
trigger[1]=0; |
28 |
|
} |
29 |
|
|
30 |
|
/** |
31 |
|
* Fills a struct cAcLevel2 with values from a AcLevel2 object (to put data into a F77 common). |
32 |
|
*/ |
33 |
|
void AcLevel2::GetLevel2Struct(cAcLevel2 *l2) const{ |
34 |
|
for(int i=0;i<2;i++){ |
35 |
|
l2->status[i] = status[i]; |
36 |
|
l2->hitmap[i] = hitmap[i]; |
37 |
|
l2->hitstatus[i] = hitstatus[i]; |
38 |
|
l2->trigger[i] = trigger[i]; |
39 |
|
} |
40 |
|
} |
41 |
|
|
42 |
|
void AcLevel2::SetFromLevel2Struct(cAcLevel2 *l2){ |
43 |
|
for(int i=0;i<2;i++){ |
44 |
|
status[i] = l2->status[i]; |
45 |
|
hitmap[i] = l2->hitmap[i]; |
46 |
|
hitstatus[i] = l2->hitstatus[i]; |
47 |
|
trigger[i] = l2->trigger[i]; |
48 |
|
} |
49 |
|
} |