Debian Codegraph @

src/estategroup.h

raw
1 // Copyright © 2002-2003 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 MONOP_ESTATEGROUP_H
18 #define MONOP_ESTATEGROUP_H
19
20 #include <string>
21
22 #include "gameobject.h"
23
24 class Game;
25 class Player;
26
27 class EstateGroup : public GameObject
28 {
29 public:
30 EstateGroup(int id, Game *game, std::string name);
31
32 void setPrice(unsigned int price);
33 unsigned int price();
34 void setHousePrice(unsigned int housePrice);
35 unsigned int housePrice();
36 void setRentMath(const std::string rentMath);
37 void setRentVar(const std::string rentVar);
38 int rent(Player *pLand, const std::string &rentMath);
39
40 private:
41 std::string m_rentMath, m_rentVar;
42 unsigned int m_price, m_housePrice;
43 };
44
45 #endif // MONOP_GROUP_H