MainScreenWidget::StandardActionLocker Class Reference

Instanciating this class will disable the Controls for interacting with the map or the main menu. More...

#include <mainscreenwidget.h>

List of all members.

Public Member Functions

 StandardActionLocker (MainScreenWidget *mainScreenWidget, int options)
 Disables certain controls on the game's screen.
 StandardActionLocker (const StandardActionLocker &locker)
void lock ()
void unlock ()
 ~StandardActionLocker ()


Detailed Description

Instanciating this class will disable the Controls for interacting with the map or the main menu.

Example use is for running the AI, during the player shouldn't be able to do anything on his own. Instances are typically placed as local variable on the stack and will release automatically when the function is left

Definition at line 71 of file mainscreenwidget.h.


Constructor & Destructor Documentation

MainScreenWidget::StandardActionLocker::StandardActionLocker ( MainScreenWidget mainScreenWidget,
int  options 
)

Disables certain controls on the game's screen.

Parameters:
mainScreenWidget the widget of the main screen (there is typically only one
See also:
getMainScreenWidget()
Parameters:
the sum of all control items that are to be disabled.
See also:
MainScreenWidget::LockOptions

Definition at line 40 of file mainscreenwidget.cpp.

References lock().

MainScreenWidget::StandardActionLocker::StandardActionLocker ( const StandardActionLocker locker  ) 

Definition at line 46 of file mainscreenwidget.cpp.

References lock(), options, and widget.

MainScreenWidget::StandardActionLocker::~StandardActionLocker (  ) 

Definition at line 75 of file mainscreenwidget.cpp.

References unlock().


Member Function Documentation

void MainScreenWidget::StandardActionLocker::lock (  ) 

Definition at line 55 of file mainscreenwidget.cpp.

References MainScreenWidget::lockStandardActions().

Referenced by StandardActionLocker().

void MainScreenWidget::StandardActionLocker::unlock (  ) 

Definition at line 64 of file mainscreenwidget.cpp.

References MainScreenWidget::lockStandardActions().

Referenced by ~StandardActionLocker().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:57 2012 for Advanced Strategic Command by  doxygen 1.5.1