hw9fncts.h

/* Programmer: Jennifer Leopold Date: November 7, 2015

File: hw9_functs.h

Purpose: Function prototypes used for testing the Animal,

Road, and Car functions.

*/

#ifndef HW9_FUNCTS_H

#define HW9_FUNCTS_H

#include <iostream>

#include <string.h>

#include <cstdlib>

#include "Animal.h"

#include "Road.h"

#include "Car.h"

using namespace std;

// **********************************************************

// Constants

const int STUPIDITY_LEVEL_TEST = 90; // For testing whether

// Animal will choose

// to run onto road

const int BATTERY_INCR = 10; // For testing incr'ing

// Car battery

const int DAMAGE_INCR = 200; // For testing incr'ing

// Car damage

// **********************************************************

// Function prototypes

// Test the Animal class functions.

// Preconditions: None

// Postconditions: Output indicating the results of exe-

// cuting the various Animal functions has been displayed

// on the screen.

void testAnimal();

// Test the Car class functions.

// Preconditions: None

// Postconditions: Output indicating the results of exe-

// cuting the various Car functions has been displayed

// on the screen.

void testCar();

// Test the Road class functions.

// Preconditions: None

// Postconditions: Output indicating the results of exe-

// cuting the various Road functions has been displayed

// on the screen.

void testRoad();

// Test the Car class with the Road class.

// Preconditions: None

// Postconditions: Output indicating the results of calling

// the Car function that puts a car on a Road will

// have been displayed on the screen.

void testCarWithRoad();

#endif