The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
set_scontext_unsynced Class Reference

an object to leave the synced context during draw or unsynced wml items when we don’t know whether we are in a synced context or not. More...

#include <synced_context.hpp>

Public Member Functions

 set_scontext_unsynced ()
 

Private Attributes

boost::scoped_ptr
< leave_synced_context
leaver_
 

Detailed Description

an object to leave the synced context during draw or unsynced wml items when we don’t know whether we are in a synced context or not.

if we are in a synced context we leave the synced context, otherwise it has no effect. we need this because we might call lua's wesnoth.theme_items during draw and we don’t want to have that an effect on the gamestate in this case.

Definition at line 238 of file synced_context.hpp.

Constructor & Destructor Documentation

set_scontext_unsynced::set_scontext_unsynced ( )

Definition at line 523 of file synced_context.cpp.

Member Data Documentation

boost::scoped_ptr<leave_synced_context> set_scontext_unsynced::leaver_
private

Definition at line 243 of file synced_context.hpp.


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