-
Notifications
You must be signed in to change notification settings - Fork 0
Board
Sivagiri Visakan edited this page Mar 18, 2019
·
1 revision
#include "Board.h"
Board b; // This automatically creates the required Company objects
c = b[0]; // Place at the zero-th position(as seen on the board)
std::cout << "\n\nCompany: " << c.getName();
std::cout << "\t Cost: " << c.getCost()<<std::endl;
std::cout << "\nLevel: " << c.getCurrentLevel();
std::cout << std::endl << "Rent: "<< c.getRent();
c.upgradeCompany(); // Levelling up
std::cout << "\nLevel: " <<c.getCurrentLevel();
std::cout << "\nRent: " << c.getRent();
Company: Google Cost: 200
Level: 1
Rent: 180
Level: 2
Rent: 360