summaryrefslogtreecommitdiffstats
path: root/src/CBot/tests/scenarios/methode2.txt
blob: 76ce7f481d5f1d1a3ddab911205eb8b844c4f797 (plain)
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
extern void Toto()
{
	TEST(12);

	for ( int i = 0 ; i<1000; i++)
	{
		int j = 1;
		if (i==55) TEST(12);
	}

	TEST(2);


// Nouveau();
	int		toto[4];
	point	Z[3];

	Z[1].x = 11; Z[1].y = 12;

	toto[2] = 12;
	toto[1] = nan;

//	point	test, autre(2,3) ;
//	object	titi = Radar();

	TEST ( 1 ) ;

	toto[0] = 11;

	TEST ( 2 ) ;

	toto[6] = 0;
}

extern void object::Nouveau()
{
	point a;
	a = np(Position);
}

point np(point b)
{
	point c;
	c.x = b.y;
	c.y = b.x;
	return c ;
}