[go: up one dir, main page]

File: sabre.pil

package info (click to toggle)
sabre 0.2.3-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,876 kB
  • ctags: 5,106
  • sloc: cpp: 25,581; ansic: 7,439; sh: 2,063; makefile: 92
file content (51 lines) | stat: -rw-r--r-- 1,232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
*******************************************
* Pilot params file                       *
*******************************************
# of params. 2 for now, one for each
* side
(2)
*******************************************
* For now, other than the affiliation,    *
* we're keeping the params identical.     *
* Potentially, each pilot can have their  *
* own params to create an interesting     *
* variety of behavior.                    *
*******************************************
(
10 0 0.0
10.0 0.0 2.0
0.2 20.0 16.0
0.0 0.0
1.3 8.0 0.1 0.1
18 30 40 30
5.0
)
(
10 1 0.0
10.0 0.0 2.0
0.2 20.0 16.0
0.0 0.0
1.3 8.0 0.1 0.1
18 30 40 30
5.0
)
*
* For reference, the Pilot_Params class operator >>
istream &operator >>(istream &is, Pilot_Params &ps)
{
  char c= ' ';
  READ_TOK('(',is,c);
  is >> ps.skill_level >> ps.affiliation >> ps.update_time;
  is >> ps.mparam1 >> ps.mparam2 >> ps.mparam3;
  is >> ps.mparam4 >> ps.mparam5 >> ps.mparam6;
  is >> ps.mdampy >> ps.mdampx;
  is >> ps.mparam7 >> ps.mparam8 >> ps.mparam9 >> ps.mparam10;
  is >> ps.c_step1 >> ps.c_step2 >> ps.c_step3 >> ps.c_step4;
  is >> ps.v_acquire_range;
  is >> c;
  READ_TOK(')',is,c);
  ps.v_acquire_range = m2f(ps.v_acquire_range);
  return is;
}