File indexing completed on 2024-05-05 08:08:35
0001 /*************************************************************************** 0002 continent.cpp - description 0003 ------------------- 0004 begin : sam sep 7 2002 0005 copyright : (C) 2002 by Gael de Chalendar 0006 email : kleag@free.fr 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either either version 2 0014 of the License, or (at your option) any later version.of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0020 * 02110-1301, USA 0021 ***************************************************************************/ 0022 0023 #include "continent.h" 0024 0025 0026 namespace KsirkSkinEditor 0027 { 0028 0029 /** The constructor-initializer */ 0030 Continent::Continent (const QString &myName, const QList<Country*>& myCountries, const int myBonus/*, 0031 unsigned int id*/) : 0032 m_members(myCountries), m_name(myName), m_bonus(myBonus)/*, m_id(id)*/ 0033 { 0034 for ( int i = 0; i < myCountries.size(); ++i ) 0035 { 0036 myCountries.at(i)->setContinent(this); 0037 } 0038 } 0039 0040 Continent::~Continent() 0041 { 0042 } 0043 0044 } // closing namespace KsirkSkinEditor