Skip to content

Commit

Permalink
added value definitions to classes.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-leong authored Jun 11, 2021
1 parent 9cf96ef commit c597b7e
Showing 1 changed file with 48 additions and 49 deletions.
97 changes: 48 additions & 49 deletions classes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@
class User {
public:

int starterCredits;
int credits;
int starterCredits = 900;
int credits = starterCredits;
std::string username;

class PowerUps {
public:

int pwrUpWaitTime;
int powerUpMultiplier;
int powerUpMultiplier = 200;

int powerUpCommandNum;
int maxPowerUpCommands;
int powerUpCommandNum = 0;
int maxPowerUpCommands = 10;

bool pwrUpActive; // If there is an already active powerup
bool incomePwrUpActive; // If the Income Multiplier Powerup is active
bool pwrUpActive = false; // If there is an already active powerup
bool incomePwrUpActive = false; // If the Income Multiplier Powerup is active
};
};

Expand All @@ -28,64 +27,64 @@ class Jobs {

// university degree stuffs

bool csDegreeFinished;
bool teachingDegreeFinished;
bool cookingDegreeFinished;
bool talkingDegreeFinished;
bool wizardryDegreeFinished;
bool csDegreeFinished = false;
bool teachingDegreeFinished = false;
bool cookingDegreeFinished = false;
bool talkingDegreeFinished = false;
bool wizardryDegreeFinished = false;

// job = {pay per min}

int programmer; // requires university degree in computer science
int chef; // requires university degree in cooking
int lecturer; // requires university degree in talking
int programmer = 1000; // requires university degree in computer science
int chef = 200; // requires university degree in cooking
int lecturer = 300; // requires university degree in talking

int waiter;
int teacher; // requires university degree in teaching
int taxiDriver;
int waiter = 25;
int teacher = 50; // requires university degree in teaching
int taxiDriver = 20;

class University {
public:

int UniFee;
int UniFee = 2000;

int numOfDegrees;
int numOfDegrees = 0;

std::string course1;
std::string course2;
std::string course3;
std::string course4;
std::string course5;
std::string course1 = "Computer Science";
std::string course2 = "Teaching";
std::string course3 = "Cooking";
std::string course4 = "Talking";
std::string course5 = "Wizardry";

};
};

class shopItems {
public:

std::string shopItem1;
std::string shopItem2;
std::string shopItem3;
std::string shopItem4;
std::string shopItem5;

int shopItem1Price;
int shopItem2Price;
int shopItem3Price;
int shopItem4Price;
int shopItem5Price;

bool hasItem1;
bool hasItem2;
bool hasItem3;
bool hasItem4;

int item1Amount;
int item2Amount;
int item3Amount;
int item4Amount;

bool hasAnItem;
std::string shopItem1 = "Quantum Computer";
std::string shopItem2 = "Teaching";
std::string shopItem3 = "Cooking";
std::string shopItem4 = "Talking";
std::string shopItem5 = "Wizardry";

int shopItem1Price = 100000;
int shopItem2Price = 1000;
int shopItem3Price = 9000;
int shopItem4Price = 50;
int shopItem5Price = shopItem2Price * 2;

bool hasItem1 = false;
bool hasItem2 = false;
bool hasItem3 = false;
bool hasItem4 = false;

int item1Amount = 0;
int item2Amount = 0;
int item3Amount = 0;
int item4Amount = 0;

bool hasAnItem = false;

};

0 comments on commit c597b7e

Please sign in to comment.