#include <abstractinput.h>
Inheritance diagram for AbstractInput:

Signals | |
| void | signalPlayerInput (int id, int playerNumber, int cardNumber) |
| Signals the availability of player input. | |
Public Member Functions | |
| AbstractInput (QObject *parent) | |
| Constructor for the input. | |
| virtual void | setInputAllowed (bool allowed) |
| Allow or disallow input with this device. | |
| virtual bool | inputAllowed () |
| Retrieve whether input is allowed or not. | |
| virtual void | setId (int id) |
| Set the player id number to whom this input belongs to. | |
| virtual InputDevice::InputDeviceType | type ()=0 |
| Retrieve the type of device. | |
Protected Attributes | |
| int | mId |
| Player id to whom this input belongs. | |
| bool | mInputAllowed |
| Is input allowed ? | |
Definition at line 41 of file abstractinput.h.
|
|
Constructor for the input.
Definition at line 31 of file abstractinput.cpp. References mId, and mInputAllowed. |
|
|
Retrieve whether input is allowed or not.
Definition at line 54 of file abstractinput.cpp. References mInputAllowed. Referenced by Player::setInput(). |
|
|
Set the player id number to whom this input belongs to.
Definition at line 40 of file abstractinput.cpp. References mId. Referenced by Player::setInput(). |
|
|
Allow or disallow input with this device.
Reimplemented in AiInput. Definition at line 47 of file abstractinput.cpp. References mInputAllowed. Referenced by Player::setInput(), AiInput::setInputAllowed(), Player::startTurn(), and Player::stopTurn(). |
|
||||||||||||||||
|
Signals the availability of player input.
Referenced by MouseInput::mousePress(). |
|
|
Retrieve the type of device.
Implemented in AiInput, and MouseInput. Referenced by DisplayTwo::updatePlayer(). |
|
|
Player id to whom this input belongs.
Definition at line 85 of file abstractinput.h. Referenced by AbstractInput(), AiInput::aiTurn(), MouseInput::mousePress(), and setId(). |
|
|
Is input allowed ?
Definition at line 87 of file abstractinput.h. Referenced by AbstractInput(), AiInput::aiTurn(), inputAllowed(), MouseInput::mousePress(), and setInputAllowed(). |
1.4.6