The Battle for Wesnoth  1.15.12+dev
Classes | Namespaces | Functions
vision.hpp File Reference

Various functions implementing vision (through fog of war and shroud). More...

#include "movetype.hpp"
#include "game_events/fwd.hpp"
#include <cstring>
#include <map>
#include <set>
#include <vector>
Include dependency graph for vision.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  actions::clearer_info
 Class that stores the part of a unit's data that is needed for fog clearing. More...
class  actions::shroud_clearer
 Class to encapsulate fog/shroud clearing and the resultant sighted events. More...




void actions::create_jamming_map (std::map< map_location, int > &jamming, const team &view_team)
 Helper function that creates the map of enemy anti-vision that's needed when creating a pathfinding::vision_path. More...
std::vector< int > actions::get_sides_not_seeing (const unit &target)
 Returns the sides that cannot currently see target. More...
game_events::pump_result_t actions::actor_sighted (const unit &target, const std::vector< int > *cache)
 Fires sighted events for the sides that can see target. More...
void actions::recalculate_fog (int side)
 Function that recalculates the fog of war. More...
bool actions::clear_shroud (int side, bool reset_fog, bool fire_events)
 Function that will clear shroud (and fog) based on current unit positions. More...

Detailed Description

Various functions implementing vision (through fog of war and shroud).

Definition in file vision.hpp.