#include <mainscreenwidget.h>
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 () | |
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.
| MainScreenWidget::StandardActionLocker::StandardActionLocker | ( | MainScreenWidget * | mainScreenWidget, | |
| int | options | |||
| ) |
Disables certain controls on the game's screen.
| mainScreenWidget | the widget of the main screen (there is typically only one |
| the | sum of all control items that are to be disabled. |
Definition at line 40 of file mainscreenwidget.cpp.
References lock().
| MainScreenWidget::StandardActionLocker::StandardActionLocker | ( | const StandardActionLocker & | locker | ) |
| MainScreenWidget::StandardActionLocker::~StandardActionLocker | ( | ) |
| 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().
1.5.1