Debian Codegraph @

src/debt.h

raw
1 // Copyright © 2002 Rob Kaper <[email protected]>
2 // 2010-2015 Sylvain Rochet <[email protected]>
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, see
15 // <http://www.gnu.org/licenses/>.
16
17 #ifndef __MONOPD_DEBT_H__
18 #define __MONOPD_DEBT_H__
19
20 class Estate;
21 class Player;
22
23 class Debt
24 {
25 public:
26 Debt(Player *from, Player *toPlayer, Estate *toEstate, unsigned int amount);
27
28 Player *from() { return m_from; }
29 Player *toPlayer() { return m_toPlayer; }
30 Estate *toEstate() { return m_toEstate; }
31 unsigned int amount() { return m_amount; }
32
33 private:
34 Player *m_from, *m_toPlayer;
35 Estate *m_toEstate;
36 unsigned int m_amount;
37 };
38
39 #endif // MONOP_DEBT_H