File: pcon.h

package info (click to toggle)
flying 6.20-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 752 kB
  • ctags: 1,873
  • sloc: cpp: 10,966; makefile: 189
file content (35 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (4)
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
#ifndef _pcon_h
#define _pcon_h

#ifndef _real_h
#	include "real.h"
#endif

class Vec2;
class Pocket;
class Ball;
class StaticArc;
class Wall;

class PocketConnector {
	public:
		PocketConnector()		{ w1=w2=w3=0; b1=b2=0; }
		~PocketConnector();

		void RoundedSegment( const Vec2 &e1, const Vec2 &e2,
									Vec2 *st,	const Real &r,
									Wall **w, StaticArc **a );
		int Init( const Pocket &p1, const Real &angle1,
			const Pocket &p2, const Real &angle2, const Real &cushion, const Real &rad );

	private:
		Wall			*w1;
		StaticArc	*b1;
		Wall			*w2;
		StaticArc	*b2;
		Wall			*w3;

friend class Pool;
};

#endif