Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Grid.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: Grid.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Tactical Grid
13 */
14 
15 #ifndef Grid_h
16 #define Grid_h
17 
18 #include "Types.h"
19 #include "Graphic.h"
20 #include "Geometry.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class Window;
25 class Projector;
26 class PolyRender;
27 
28 // +--------------------------------------------------------------------+
29 
30 class Grid : public Graphic
31 {
32 public:
33  Grid(int size, int step);
34  virtual ~Grid();
35 
36  virtual void Render(Video* video, DWORD flags);
37  virtual int CollidesWith(Graphic& o);
38 
39 protected:
40  virtual void DrawLine(Video* video, Point& p1, Point& p2, Color c);
41 
42  int size;
43  int step;
44  int drawn;
45 };
46 
47 // +--------------------------------------------------------------------+
48 
49 #endif Grid_h
50