Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- namespace Campbell {
- class Campbell {
- //Access specifier
- public:
- //Data types
- bool isMuted;
- bool isConvoNice = true;
- bool canUnderStand = true;
- bool isSurprised = false;
- int XP = 0;
- //Constructor
- Campbell(bool isMutedStatus) {
- isMuted = isMutedStatus;
- }
- //Functions
- bool getNice() {
- return isConvoNice;
- }
- bool DoesCampbellUnderstand() {
- return canUnderStand;
- }
- bool IsMuted() {
- return isMuted;
- }
- bool IsSurprised() {
- return isSurprised;
- }
- void setUnderStanding(bool canUnderstand) {
- canUnderStand = canUnderstand;
- }
- void setNice(bool isNice) {
- isConvoNice = isNice;
- }
- void setMuted(bool IsMuted) {
- isMuted = IsMuted;
- }
- void setSurprise(bool IsSurprised) {
- isSurprised = IsSurprised;
- }
- void Nice() {
- cout << "Nice";
- XP++;
- }
- void WellThen() {
- cout <<"Well then";
- XP++;
- }
- void Thinking() {
- cout <<"🤔";
- XP++;
- }
- void WaitWhat() {
- cout <<"Wait what";
- XP++;
- }
- void GetXP() {
- printf("Campbell is a dirty farmer and has %d XP", XP);
- }
- };
- }
- int main() {
- Campbell::Campbell mcmuffin = new Campbell::Campbell(false);
- //Sheevs Discord
- cout << "Is it past Campbell's bed time?";
- string isit;
- cin >> isit;
- bool jokeMuted;
- if (isit == "yes") {
- jokeMuted = true;
- } else {
- jokeMuted = false;
- }
- while (mcmuffin.IsMuted() == false) {
- cout << "Can Campbell understand the conversation?";
- string idkcanyou;
- cin >> idkcanyou;
- if (idkcanyou == "yes") {
- mcmuffin.setUnderStanding(true);
- } else {
- mcmuffin.setUnderStanding(false);
- }
- cout << "Did the conversation take Campbell by surprise?";
- string didit;
- cin >> didit;
- if (didit == "yes") {
- mcmuffin.setSurprise(true);
- } else {
- mcmuffin.setSurprise(false);
- }
- if (mcmuffin.DoesCampbellUnderstand()) {
- if (mcmuffin.IsSurprised()) {
- mcmuffin.WaitWhat();
- }
- cout << "Is the conversation about something good?";
- string isit;
- cin >> isit;
- if (isit == "yes") {
- mcmuffin.setNice(true);
- } else {
- mcmuffin.setNice(false);
- }
- if (mcmuffin.getNice()) {
- mcmuffin.Nice();
- } else {
- mcmuffin.WellThen();
- }
- } else {
- mcmuffin.Thinking();
- }
- cout << "Is it time for Campbell's bedtime now?";
- string isit;
- cin >> isit;
- if (isit == "yes") {
- mcmuffin.setMuted(true);
- }
- } //while loop end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement