All pastes #901528 Raw Edit

Gravious

public cpp v1 · immutable
·published 2008-02-12 19:01 UTC
rendered paste body
/*** * eventHandling.cpp * * Sets the event handling functions * * @author Leigh Ashton <gravious@gmail.com> * @since  12 Feb, 2008. **/#include "eventHandling.h"void parseAction(string input, human* sentient){		system("cls");	cout << "\nLeigh's Unnamed RPG Prototype.";	cout << "\n\n\tType 'help' for supported commands.\n\n";	if (input == "quit"){		return;	}	else if (input == "help"){		cout << "\nHELP:";		cout << "\n\tquit - quits the game";		cout << "\n\n";				return;	}	else if (input == "list"){/*		for (iterator = 0; iterator < num; iterator++){						 sentient[iterator].dump(iterator);		}*/			 sentient[0].dump(0);		return;	}	else if (input == "fight"){				// swordFight(&sentient[0], &sentient[1]);		return;	}	else{		cout << "\n\t** Unsupported Command **\n\n";		return;	}}