Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
navscreenoccupied.h
Go to the documentation of this file.
1 #ifndef _NAVSCREENOCCUPIED_H_
2 #define _NAVSCREENOCCUPIED_H_
3 
4 //#include "masks.h"
5 
7 {
8 private:
9 
10 //bits are down. sectors across. starting at top left of navscreen area
11  int sector0;
12  int sector1;
13  int sector2;
14  int sector3;
15  int sector4;
16  int sector5;
17  int sector6;
18  int sector7;
19  int sector8;
20  int sector9;
21 
22  float screenskipby4[4];
23  bool markreturned;
24 
25 public: navscreenoccupied();
26  navscreenoccupied( float x_small, float x_large, float y_small, float y_large, bool _markreturned );
27 
28  void reset();
29  float findfreesector( float x, float y );
30  float findfreefloat( int &sector, float &y );
31 };
32 #endif
33