/* crew.cpp - Copyright 2014 Andrew Schwartzmeyer * Source file template for Crew class */ #include "crew.h" #include using namespace std; Crew::Crew() { stable = true; // change the initial values to affect balance thirst = 50; work = 50; horde = 50; hunger = 50; beauty = 50; receipts = 50; } void Crew::print_menu() { // print the main game menu cout << "What would you like the crew to do?\n\n" << "(0) Exit game and get current score\n" << "(1) Let Fry drink Slurm\n" << "(2) Make Leela pilot Planet Express to deliver a package\n" << "(3) Allow Bender to steal something\n" << "(4) Feed Zoidberg some food\n" << "(5) Let Amy primp herself in the mirror\n" << "(6) Give Hermes the receipts so he can do accounting\n\n" << "Enter your choice: "; } // functions below here need implementation bool Crew::check() { // Check each property against your specified range, and return // false if the any of the values fall out of said range (unstable); // else return true (the crew is still stable) // Also check a smaller (i.e. contained) "warning" range for each // property, and print out a warning if the property is getting too // high (or too low) // Needs implementation! return true; } int Crew::score() { // Return the score of the game int score = 0; // Needs implementation! return score; } void Crew::drink() { // Give Fry a drink of Slurm // Needs implementation! } void Crew::deliver() { // Have Leela pilot the PlanetExpress to a delivery // Needs implementation! } void Crew::steal() { // Allow Bender steal some treasure // Needs implementation! } void Crew::eat() { // Feed Zoidberg some food // Needs implementation! } void Crew::primp() { // Let Amy primp herself // Needs implementation! } void Crew::account() { // Give Hermes the receipts so he can catch up on accounting // Needs implementation! }