aboutsummaryrefslogtreecommitdiffstats
path: root/problem.hpp
diff options
context:
space:
mode:
authorJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-01 23:30:18 +0100
committerJean Fabre-Monplaisir <jean-isaac-fm@live.fr>2015-02-01 23:30:18 +0100
commitc119262d3e0d4a706efcd4a68bbe5f8102826fcf (patch)
tree0b252096e88ba3a27c335ae8fee413717f4605fc /problem.hpp
parent499d8b00d8017a32ae31deafc88416c452b48c8c (diff)
downloadRobotique-Projet-c119262d3e0d4a706efcd4a68bbe5f8102826fcf.tar.gz
Robotique-Projet-c119262d3e0d4a706efcd4a68bbe5f8102826fcf.zip
Formatting
Diffstat (limited to 'problem.hpp')
-rw-r--r--problem.hpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/problem.hpp b/problem.hpp
index 5d9269a..40361d9 100644
--- a/problem.hpp
+++ b/problem.hpp
@@ -46,7 +46,7 @@ struct hilare_a { // System A
return vec(xc, yc);
}
- bool intersects(const obstacle &o) const; // intersects an obstacle ?
+ bool intersects(const obstacle &o) const; // intersects an obstacle ?
};
@@ -82,10 +82,10 @@ struct hilare_a_mvt {
double ds; // longueur par
double length(); // length of a movement
-
+
bool intersects(const obstacle &o) const; // intersects an obstacle ?
- bool intersects(const problem &p) const; // intersects any obstacle on the map ?
+ bool intersects(const problem &p) const; // intersects any obstacle on the map ?
};
struct solution {
@@ -116,28 +116,28 @@ class solver {
private:
- sf::Mutex _d_lock;
- solver_internal _d;
- problem _p;
+ sf::Mutex _d_lock;
+ solver_internal _d;
+ problem _p;
+
+ bool _please_stop;
+ bool _running;
+ bool _done;
+ solution _s;
- bool _please_stop;
- bool _running;
- bool _done;
- solution _s;
-
- sf::Thread _worker;
+ sf::Thread _worker;
public:
- solver();
+ solver();
- void start(const problem &p);
+ void start(const problem &p);
- void run(); // worker thread
+ void run(); // worker thread
- bool finished();
- solution get_solution();
+ bool finished();
+ solution get_solution();
- solver_internal peek_internal();
+ solver_internal peek_internal();
};