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
click_list.h
Go to the documentation of this file.
1 #ifndef _GFX_CLICK_LIST_H_
2 #define _GFX_CLICK_LIST_H_
3 
4 //#include "vegastrike.h"
5 #include "gfx/matrix.h"
6 #include "collection.h"
7 #include "star_system.h"
8 Vector MouseCoordinate( int x, int y ); //FIXME
9 
10 class ClickList
11 {
12 private:
13  UnitCollection *parentIter;
14  StarSystem *parentSystem;
15  UnitCollection *lastCollection;
16  Unit *lastSelected;
17 public:
18 //gets passed in unnormalized mouse values btw 0 and g_game.x_resolution&& g_game.y_resolution
19  bool queryShip( int mouseX, int mouseY, Unit* ); //returns if the ship's in iterator utilizes
20  ClickList( StarSystem *parSystem, UnitCollection *parentIter );
22  UnitCollection * requestIterator( int mouseX, int mouseY );
23  UnitCollection * requestIterator( int minX, int minY, int maxX, int maxY );
24  Unit * requestShip( int mouseX, int mouseY );
25 };
26 #endif
27