File indexing completed on 2024-04-21 04:05:22

0001 /*
0002     This file is part of the KDE games lskat program
0003     SPDX-FileCopyrightText: 2006 Martin Heni <kde@heni-online.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "abstractengine.h"
0009 
0010 // Qt includes
0011 
0012 // KF includes
0013 
0014 // Constructor for the game document/engine
0015 AbstractEngine::AbstractEngine(QWidget *parent)
0016                : QObject(parent)
0017 {
0018     mGameStatus = Stopped;
0019     mPlayers.clear();
0020 }
0021 
0022 // Add a player to the game
0023 void AbstractEngine::addPlayer(int no, Player *player)
0024 {
0025     mPlayers[no] = player;
0026 }
0027 
0028 // Retrieve the player of the given number.
0029 Player *AbstractEngine::player(int no)
0030 {
0031     return mPlayers[no];
0032 }
0033 
0034 #include "moc_abstractengine.cpp"