The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Functions
vision.hpp File Reference

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

#include "movetype.hpp"
#include <boost/noncopyable.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.

Classes

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...
 

Namespaces

 actions
 

Functions

std::vector< intactions::get_sides_not_seeing (const unit &target)
 Returns the sides that cannot currently see target. More...
 
bool 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.