~ubuntu-branches/ubuntu/lucid/monopd/lucid

« back to all changes in this revision

Viewing changes to src/card.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-02-13 18:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20040213180530-0etjgas7wosb2ben
Tags: upstream-0.9.0
ImportĀ upstreamĀ versionĀ 0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) 2001-2003 Rob Kaper <cap@capsi.com>,
 
2
//               2001 Erik Bourget <ebourg@cs.mcgill.ca>
 
3
//
 
4
// This program is free software; you can redistribute it and/or
 
5
// modify it under the terms of the GNU General Public License
 
6
// version 2 as published by the Free Software Foundation.
 
7
//
 
8
// This program is distributed in the hope that it will be useful,
 
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
// General Public License for more details.
 
12
//
 
13
// You should have received a copy of the GNU General Public License
 
14
// along with this program; see the file COPYING.  If not, write to
 
15
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
16
// Boston, MA 02111-1307, USA.
 
17
 
 
18
#include <stdlib.h>
 
19
 
 
20
#include "cardgroup.h"
 
21
#include "card.h"
 
22
 
 
23
Card::Card(CardGroup *group, int id) : GameObject(id, GameObject::GCard)
 
24
{
 
25
        m_group = group;
 
26
 
 
27
        m_canBeOwned = m_outOfJail = false;
 
28
        m_owner = 0;
 
29
 
 
30
        m_rentMath = "";
 
31
        setPay(0);
 
32
        setPayHouse(0);
 
33
        setPayHotel(0);
 
34
        setPayEach(0);
 
35
        setAdvance(0);
 
36
        setAdvanceTo(-1); // Because 0 would be valid here
 
37
        setToJail(false);
 
38
        m_advanceToNextOf = 0;
 
39
}