equal
deleted
inserted
replaced
17 |
17 |
18 P[0] = new Vector (0, 0); |
18 P[0] = new Vector (0, 0); |
19 P[1] = new Vector (0, 100); |
19 P[1] = new Vector (0, 100); |
20 P[2] = new Vector (100, 100); |
20 P[2] = new Vector (100, 100); |
21 P[3] = new Vector (0, 100); |
21 P[3] = new Vector (0, 100); |
|
22 |
|
23 refCounter++; |
22 } |
24 } |
23 |
25 |
24 Rectangle::Rectangle (Surface * s, Vector & p1, Vector & p2, Vector & p3, Vector & p4) |
26 Rectangle::Rectangle (Surface * s, Vector & p1, Vector & p2, Vector & p3, Vector & p4) |
25 { |
27 { |
26 surface = s; |
28 surface = s; |
30 |
32 |
31 P[0] = new Vector (p1); |
33 P[0] = new Vector (p1); |
32 P[1] = new Vector (p2); |
34 P[1] = new Vector (p2); |
33 P[2] = new Vector (p3); |
35 P[2] = new Vector (p3); |
34 P[3] = new Vector (p4); |
36 P[3] = new Vector (p4); |
|
37 |
|
38 refCounter++; |
35 } |
39 } |
36 |
40 |
37 Rectangle::Rectangle (Surface * s, Vector p[4]) |
41 Rectangle::Rectangle (Surface * s, Vector p[4]) |
38 { |
42 { |
39 surface = s; |
43 surface = s; |
42 anker = Vector (0, 0); |
46 anker = Vector (0, 0); |
43 |
47 |
44 for (int i = 0; i < 4; i++) { |
48 for (int i = 0; i < 4; i++) { |
45 P[i] = new Vector (p[i]); |
49 P[i] = new Vector (p[i]); |
46 } |
50 } |
|
51 |
|
52 refCounter++; |
|
53 } |
|
54 |
|
55 Rectangle::Rectangle (const Rectangle & copy) |
|
56 { |
|
57 fprintf (stderr, "Copy Constructor in Rectangle disabled...\n"); |
47 } |
58 } |
48 |
59 |
49 Rectangle::~Rectangle () |
60 Rectangle::~Rectangle () |
50 { |
61 { |
51 for (int i = 0; i < 4; i++) { |
62 for (int i = 0; i < 4; i++) { |