The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
wb::future_map_if_active Struct Reference

ONLY IF whiteboard is currently active, applies the planned unit map for the duration of the struct's life. More...

#include <manager.hpp>

Public Member Functions

 future_map_if_active ()
 
 ~future_map_if_active ()
 

Public Attributes

bool initial_planned_unit_map_
 
bool whiteboard_active_
 

Detailed Description

ONLY IF whiteboard is currently active, applies the planned unit map for the duration of the struct's life.

Reverts to real unit map on destruction, unless planned unit map was already applied when the struct was created.

Definition at line 273 of file manager.hpp.

Constructor & Destructor Documentation

◆ future_map_if_active()

wb::future_map_if_active::future_map_if_active ( )

◆ ~future_map_if_active()

wb::future_map_if_active::~future_map_if_active ( )

Definition at line 1260 of file manager.cpp.

References initial_planned_unit_map_, and resources::whiteboard.

Member Data Documentation

◆ initial_planned_unit_map_

bool wb::future_map_if_active::initial_planned_unit_map_

Definition at line 277 of file manager.hpp.

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

◆ whiteboard_active_

bool wb::future_map_if_active::whiteboard_active_

Definition at line 278 of file manager.hpp.

Referenced by future_map_if_active().


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