~ubuntu-branches/ubuntu/quantal/kdegames/quantal

« back to all changes in this revision

Viewing changes to konquest/players/localplayer.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:50 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20111215141750-6tj6brf4azhrt915
Tags: 4:4.7.90-0ubuntu1
new upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright Russell Steffen <rsteffen@bayarea.net>
 
3
    Copyright Stephan Zehetner <s.zehetner@nevox.org>
 
4
    Copyright Dmitry Suzdalev <dimsuz@gmail.com>
 
5
    Copyright Inge Wallin <inge@lysator.liu.se>
 
6
    Copyright Pierre Ducroquet <pinaraf@gmail.com>
 
7
 
 
8
    This program is free software; you can redistribute it and/or modify
 
9
    it under the terms of the GNU General Public License as published by
 
10
    the Free Software Foundation; either version 2 of the License, or
 
11
    (at your option) any later version.
 
12
 
 
13
    This program is distributed in the hope that it will be useful,
 
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
    GNU General Public License for more details.
 
17
 
 
18
    You should have received a copy of the GNU General Public License
 
19
    along with this program; if not, write to the Free Software
 
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
21
 */
 
22
 
 
23
#include "localplayer.h"
 
24
#include <QDebug>
 
25
 
 
26
LocalPlayer::LocalPlayer(Game *game, const QString &newName, const QColor &color) :
 
27
    Player(game, newName, color)
 
28
{
 
29
}
 
30
 
 
31
bool LocalPlayer::isAiPlayer()
 
32
{
 
33
    return false;
 
34
}
 
35
 
 
36
void LocalPlayer::play()
 
37
{
 
38
    qDebug() << name() << "::play";
 
39
    emit(canPlay());
 
40
}
 
41
 
 
42
void LocalPlayer::done()
 
43
{
 
44
    qDebug() << name() << "::done";
 
45
    emit(donePlaying());
 
46
}