File: group.h

package info (click to toggle)
rafkill 1.2.2-3.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,268 kB
  • sloc: cpp: 13,508; makefile: 64; sh: 14
file content (31 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (12)
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
#ifndef _group_h
#define _group_h

using namespace std;

#include <vector>

class SpaceObject;

class Group{
public:

	Group( const int _y );

	void add( SpaceObject * who );
	void drop( SpaceObject * who );
	int size() const;
	inline const int pos() const{
		return y;
	}
	const vector< SpaceObject * > * members() const;

	~Group();

protected:
	vector< SpaceObject * > list;
	int y;
	
};

#endif