Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
targetselector.h
1 #pragma once
2 
3 #include <functional>
4 
5 class WorldObject;
6 class Player;
7 
9 public:
10  TargetSelector(Player* player);
11 
12  void selectTarget(bool next);
13 private:
14  void selectNextTarget();
15  void selectPreviousTarget();
16  Player* m_player;
17  template<typename IteratorType>
18  WorldObject* findNextTarget(IteratorType begin, IteratorType end);
19 
20  std::function<bool(WorldObject*)> canLockOnPredicate();
21 };
Definition: worldobject.h:43
Definition: player.h:22
Definition: targetselector.h:8