| 1 |
// Copyright © 2001-2003 Rob Kaper <[email protected]>, |
| 2 |
// 2001 Erik Bourget <[email protected]> |
| 3 |
// 2010-2015 Sylvain Rochet <[email protected]> |
| 4 |
// |
| 5 |
// This program is free software; you can redistribute it and/or |
| 6 |
// modify it under the terms of the GNU General Public License |
| 7 |
// version 2 as published by the Free Software Foundation. |
| 8 |
// |
| 9 |
// This program is distributed in the hope that it will be useful, |
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
// General Public License for more details. |
| 13 |
// |
| 14 |
// You should have received a copy of the GNU General Public License |
| 15 |
// along with this program; see the file COPYING. If not, see |
| 16 |
// <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
#include "config.h" |
| 19 |
|
| 20 |
#include <stdlib.h> |
| 21 |
|
| 22 |
#include "cardgroup.h" |
| 23 |
#include "card.h" |
| 24 |
|
| 25 |
Card::Card(CardGroup *group, int id) : GameObject(id, GameObject::GCard) |
| 26 |
{ |
| 27 |
m_group = group; |
| 28 |
|
| 29 |
m_canBeOwned = m_outOfJail = false; |
| 30 |
m_owner = 0; |
| 31 |
|
| 32 |
m_rentMath = ""; |
| 33 |
setPay(0); |
| 34 |
setPayHouse(0); |
| 35 |
setPayHotel(0); |
| 36 |
setPayEach(0); |
| 37 |
setAdvance(0); |
| 38 |
setAdvanceTo(-1); // Because 0 would be valid here |
| 39 |
setToJail(false); |
| 40 |
m_advanceToNextOf = 0; |
| 41 |
} |