xref: /haiku/src/add-ons/screen_savers/glife/GLifeGrid.h (revision 3c94b5cb05058d92687da398daedfe91634e1b34)
1 /*
2  * Copyright 2012, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  * 		Aaron Hill <serac@hillvisions.com>
7  */
8 #ifndef _GLIFE_GLIFEGRID_H
9 #define _GLIFE_GLIFEGRID_H
10 
11 
12 // GLifeGrid Class Declaration
13 class GLifeGrid
14 {
15 private:
16 	bool*		m_pbGrid;
17 	int32		m_iWidth;
18 	int32		m_iHeight;
19 
20 	int32		Neighbors( int32, int32 );
21 
22 public:
23 	// Constructor & Destructor
24 				GLifeGrid( int32, int32 );
25 				~GLifeGrid( void );
26 	// Public Methods
27 	void		Generation( void );
28 	// Accessor Methods
29 	bool		Occupied( int32, int32 );
30 };
31 
32 #endif /* _GLIFE_GLIFEGRID_H */
33