+bool Player::hasName() {
+ return !name.isEmpty();
+}
+
+QString Player::getName() {
+ return name;
+}
+
+QString Player::getCurrentLine() {
+ return currentLine;
+}
+
+void Player::setWaiting(QString labeltext) {
+ theLabel->setText(labeltext);
+ modifyable = false;
+}
+
+void Player::resetText() {
+ currentLine.clear();
+ theLabel->setText(currentLine);
+ modifyable = true;
+}
+
+bool Player::handleKey(QString str) {
+ if (!modifyable)
+ return false;
+ bool newChar = false;