diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-11-06 20:17:58 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-11-06 20:18:31 +0000 |
commit | 6ab51bfb002af08da74a693f386c4154d2c4108a (patch) | |
tree | ee1954051f88f2cacd6470ab4418bef468b91735 /src/common.hpp | |
parent | bdd1b10cb8d6c405de58031e1de57c7f2b24225f (diff) |
More support for cflags.
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.hpp b/src/common.hpp index 0785a79..b7ce218 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -110,9 +110,11 @@ namespace world { // FIXME: iterators instead of returning std::lists std::list<sector_t*> get_sectors(rectf_t rect); - std::list<entity_t*> get_entities(rectf_t rect); + std::list<entity_t*> get_entities(rectf_t rect, cflags_t cflags); std::list<entity_t*> get_render_entities(rectf_t rect); + bool test_rect(rectf_t rect, cflags_t cflags); + void debug_point(sf::Vector2f point); }; @@ -154,7 +156,7 @@ namespace world { ~path_finder_t(); void setup_nodes(v2f_t src_, v2f_t dst_, cflags_t cflags_); - void eliminate_nodes(cmodel_t cmodel); + void eliminate_nodes(rectf_t rect); void find_r(tile_index_t index, float dist, float limit); bool find(void); void export_path(std::list<v2f_t> *list); |