Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- class Player
- {
- private:
- int iGold, iWood, iStone;
- public:
- Player(int g = 100, int w = 5000, int s = 5000)
- {
- iGold = g;
- iWood = w;
- iStone = s;
- }
- void showMenu();
- char chooseOption();
- void showResult();
- void createBuilding();
- void deestroyBuilding();
- };
- class Building
- {
- private:
- int lvl;
- public:
- Building(int l) lvl = l;
- ~Building lvl = 0;
- virtual void product() = 0;
- };
- class GoldMine :public Building
- {
- void product();
- };
- class ChopperHut :public Building
- {
- void product();
- };
- class StoneMine :public Building
- {
- void product();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement