Commit 4ceef61e authored by Gaël de Chalendar's avatar Gaël de Chalendar
Browse files

Corrected many problems reported by the ebn

svn path=/trunk/playground/games/ksirk/; revision=645585
parent 5130ce2b
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
#include "kplayersetupdialog.h"
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
#include "kwaitedplayersetupdialog.h"
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
......
/***************************************************************************
* newGameDialogImpl.cpp
* -------------------
* begin : Wed Feb 23 2005
* copyright : (C) 2005 by Gael de Chalendar <kleag@free.fr>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#include "newGameDialogImpl.h"
#include "GameLogic/onu.h"
......
......@@ -2,7 +2,7 @@
newGameDialogImpl.h - description
-------------------
begin : Wed Feb 23 2005
copyright : (C) 2005 by Gaël de Chalendar
copyright : (C) 2005 by Gael de Chalendar
email : kleag@free.fr
***************************************************************************/
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
......
/* This file is part of KsirK.
* Copyright (C) 2007 Gael de Chalendar <kleag@free.fr>
*
* KsirK is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
*/
#include "restartOrExitDialogImpl.h"
#include <klocale.h>
......
......@@ -2,7 +2,7 @@
restartOrExitDialogImpl.h - description
-------------------
begin : Sun Jul 16 2006
copyright : (C) 2006 by Gaël de Chalendar (aka Kleag)
copyright : (C) 2006 by Gael de Chalendar (aka Kleag)
email : kleag@free.fr
***************************************************************************/
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#define KDE_NO_COMPAT
......
//
// C++ Implementation: kstringvector
//
// Description:
//
//
// Author: Gaël de Chalendar (aka Kleag) <kleag@free.fr>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
C++ Implementation: kstringvector
Description:
Author: Gael de Chalendar (aka Kleag) <kleag@free.fr>, (C) 2005
Copyright: See COPYING file that comes with this distribution
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA
*/
#include "KMessageParts.h"
#include "kdebug.h"
......
......@@ -2,7 +2,7 @@
kstringvector.h - description
-------------------
begin : Mon Sep 26 2005
copyright : (C) 2005-2007 by Gaël de Chalendar (aka Kleag)
copyright : (C) 2005-2007 by Gael de Chalendar (aka Kleag)
email : kleag@free.fr
***************************************************************************/
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#ifndef KSIRK_GAMELOGICKMESSAGEPARTS_H
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#include "KsirkChatDelegate.h"
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#ifndef KSIRKCHATDELEGATE_H
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#include "KsirkChatItem.h"
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#ifndef KSIRKCHATITEM_H
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#include <qlayout.h>
#include <qapplication.h>
......
......@@ -2,7 +2,7 @@
KsirkChatItem.h - description
-------------------
begin : Mon Sep 26 2006
copyright : (C) 2006-2007 by Gaël de Chalendar (aka Kleag)
copyright : (C) 2006-2007 by Gael de Chalendar (aka Kleag)
email : kleag@free.fr
***************************************************************************/
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
#ifndef KSIRKCHATMODEL_H
......
// kate: space-indent on; indent-width 2; replace-tabs on;
/* This file is part of KsirK.
Copyright (C) 2006-2007 Gaël de Chalendar <kleag@free.fr>
Copyright (C) 2006-2007 Gael de Chalendar <kleag@free.fr>
This file was initialy part of XFrisk
Copyright (C) 1995 and later Jean-Claude Colson and Others
......@@ -14,11 +14,11 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
*/
/***********************************************************************
*
* 18-8-95 Created by Jean-Claude Colson.
......
// kate: space-indent on; indent-width 2; replace-tabs on;
/* This file is part of KsirK.
Copyright (C) 2006-2007 Gaël de Chalendar <kleag@free.fr>
/** This file is part of KsirK.
Copyright (C) 2006-2007 Gael de Chalendar <kleag@free.fr>
This file was initialy part of XFrisk
Copyright (C) 1995 and later Jean-Claude Colson and Others
......@@ -15,9 +15,9 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA
*/
#ifndef KSIRK_GAMELOGIC_AICOLSONPLAYER_H
......@@ -77,7 +77,7 @@ public:
/**
* Chooses the next action. In the current basic setting, chooses at random
* between the three possibilities. For each, chooses randomly the
* parameters.If the randomly choosen parameters end by an impossible
* parameters.If the randomly chosen parameters end by an impossible
* action, continue with next player.
*/
virtual void chooseAttackMoveArmiesOrNextPlayer();
......
......@@ -13,6 +13,10 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA
***************************************************************************/
/* Local includes */
......@@ -70,7 +74,7 @@ AIPlayer :: AIPlayer(
/**
* This function is called whenever the player should choose an action (
* attack, defense, etc.). It has the responsability to choose the correct
* attack, defense, etc.). It has the responsibility to choose the correct
* action depending on the state of the game.
*/
void AIPlayer::actionChoice(GameLogic::GameAutomaton::GameState state)
......@@ -153,7 +157,7 @@ void AIPlayer::actionChoice(GameLogic::GameAutomaton::GameState state)
/**
* Chooses the next action. In the current basic setting, chooses at random
* between the three possibilities. For each, chooses randomly the parameters.
* If the randomly choosen parameters end by an impossible action, continue
* If the randomly chosen parameters end by an impossible action, continue
* with next player.
*/
void AIPlayer::chooseAttackMoveArmiesOrNextPlayer()
......@@ -335,7 +339,7 @@ bool AIPlayer::attackAction()
uint nbAttack = 0;
if (srcNbArmies == 1)
{
kError() << "AI player " << Player::name() << " country " << m_src->nbArmies() << "have only one army. Should not be choosed to attack." << endl;
kError() << "AI player " << Player::name() << " country " << m_src->nbArmies() << "have only one army. Should not be chosen to attack." << endl;
exit();
}
if (srcNbArmies >= 2) {nbAttack = 1;}
......
/* This file is part of KsirK.
Copyright (C) 2002-2007 Gaël de Chalendar <kleag@free.fr>
Copyright (C) 2002-2007 Gael de Chalendar <kleag@free.fr>
KsirK is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
......@@ -11,9 +11,9 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA
*/
#ifndef AIPLAYER_H
......@@ -77,14 +77,14 @@ public:
/**
* Saves this AI player as XML. Used in game saving.
* @param xmlStream The stream on wich to write the XML
* @param xmlStream The stream on which to write the XML
*/
virtual void saveXml(std::ostream& xmlStream);
protected:
/**
* This function is called whenever the player should choose an action
* (attack, defense, etc.). It has the responsability to choose the correct
* (attack, defense, etc.). It has the responsibility to choose the correct
* action depending on the state of the game.
*/
virtual void actionChoice(GameLogic::GameAutomaton::GameState state);
......@@ -96,7 +96,7 @@ protected:
/**
* Chooses the next action. In the current basic setting, chooses at random
* between the three possibilities. For each, chooses randomly the
* parameters.If the randomly choosen parameters end by an impossible
* parameters.If the randomly chosen parameters end by an impossible
* action, continue with next player.
*/
virtual void chooseAttackMoveArmiesOrNextPlayer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment