| 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 <string> |
| 23 |
|
| 24 |
#include "auction.h" |
| 25 |
#include "player.h" |
| 26 |
|
| 27 |
Auction::Auction() |
| 28 |
: GameObject(0) |
| 29 |
{ |
| 30 |
setProperty("highbid", 0); |
| 31 |
m_highBidder = 0; |
| 32 |
m_estate = 0; |
| 33 |
m_status = Bidding; |
| 34 |
} |
| 35 |
|
| 36 |
void Auction::setHighBid(Player *player, unsigned int bid) |
| 37 |
{ |
| 38 |
setProperty("highbid", bid); |
| 39 |
m_highBidder = player; |
| 40 |
m_status = Bidding; |
| 41 |
} |