The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
wb::real_map Struct Reference

Ensures that the real unit map is active for the duration of the struct's life. More...

#include <manager.hpp>

Public Member Functions

 real_map ()
 
 ~real_map ()
 

Public Attributes

bool initial_planned_unit_map_
 
whiteboard_lock unit_map_lock_
 

Detailed Description

Ensures that the real unit map is active for the duration of the struct's life.

On destruction reverts to planned unit map if it was active when the struct was created.

Definition at line 283 of file manager.hpp.

Constructor & Destructor Documentation

◆ real_map()

wb::real_map::real_map ( )

Definition at line 1268 of file manager.cpp.

References initial_planned_unit_map_, and resources::whiteboard.

◆ ~real_map()

wb::real_map::~real_map ( )

Definition at line 1278 of file manager.cpp.

References initial_planned_unit_map_, and resources::whiteboard.

Member Data Documentation

◆ initial_planned_unit_map_

bool wb::real_map::initial_planned_unit_map_

Definition at line 287 of file manager.hpp.

Referenced by real_map(), and ~real_map().

◆ unit_map_lock_

whiteboard_lock wb::real_map::unit_map_lock_

Definition at line 288 of file manager.hpp.


The documentation for this struct was generated from the following files: