diff options
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); |