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>
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< int > | actions::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... | |
Various functions implementing vision (through fog of war and shroud).
Definition in file vision.hpp.