Monk Posted May 29, 2010 Share Posted May 29, 2010 Night Death. I'm off for sleep related reasons also. [spoiler=Quotes]Goddammit Monk, stop being so full of win.I am Monk's [bleep] Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 Night. u should un-block me... God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
H2PM Posted May 29, 2010 Share Posted May 29, 2010 No. Night. "Let your anger be as a monkey in a piñata... hiding amongst the candy... hoping the kids don't break through with the stick." - Master Tang Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 Yes. G'Night. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 [hide=code] using namespace std; int main() { srand(time(0)); char start; bool play = true; do { menuScreen(); // print out the opening menu bool menu = true; do { cin >> start; // get player's choice of what to do ///////////////////////////////////// if they want to load a game if (start == 'L' || start == 'l') { char tryagain = 'y'; // in case the file does not exist do { //get the name of the saved character string fname; cout << "What is the name of the saved character? "; cin >> fname; //load the game; if it fails ask if they'd like to try again if(bin_loadGame(fname)) { menu = false; break; } else { cout << "Either the file does not exist or could not be opened.\n"; cout << "Would you like to try to load a different character? (y/n) "; cin >> tryagain; } } while(tryagain == 'y'); if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again, { // ask them to choose to quit, start a new game or load a game again cout << "Enter another choice: "; } } ///////////////////////////////////// if they want to start a new game else if (start == 'N' || start == 'n') { createMap(); // generate the map //get the name they want to give their character cout << "What would you like your name to be? (do not use spaces) "; string name; cin >> name; player.set_name(name); //print the instructions/rules of the game printRules(); menu = false; } ///////////////////////////////////// if they want to leave without doing anything else if (start == 'Q' || start == 'q') { cout << "Good-bye :'(" << endl; return 0; } ///////////////////////////////////// if they do not make a valid choice, exit the game else { cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl; return 0; } } while(menu); RefreshMap(); // print the map for the first time //Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx HANDLE hStdin; DWORD cNumRead, fdwMode, fdwSaveOldMode, i; INPUT_RECORD irInBuf[128]; int counter=0; // Get the standard input handle. hStdin = GetStdHandle(STD_INPUT_HANDLE); if (hStdin == INVALID_HANDLE_VALUE) ErrorExit("GetStdHandle"); // Save the current input mode, to be restored on exit. if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) ErrorExit("GetConsoleMode"); // Enable the window and mouse input events. fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; if (! SetConsoleMode(hStdin, fdwMode) ) ErrorExit("SetConsoleMode"); while(!dead) // while the player is still alive, continue reading keyboard input { if (! ReadConsoleInput( hStdin, // input buffer handle irInBuf, // buffer to read into 128, // size of read buffer &cNumRead) ) // number of records read ErrorExit("ReadConsoleInput"); // Dispatch the events to the appropriate handler. for (i = 0; i < cNumRead; i++) { switch(irInBuf[i].EventType) { case KEY_EVENT: // keyboard input KeyEventProc(irInBuf[i].Event.KeyEvent); break; } } } //once they die, ask if they want to play again cout << "Do you want to play again? (y/n) "; cin >> start; //if they do want to play again if (start == 'y') { play = true; // make sure game will go through another iteration dead = false; // reset the dead variable so that they don't die after one move resetPlayer(); continue; // restart the game } else { play = false; // make sure the game will not go through another iteration cout << "Good-Bye. :'(\n"; // say good-bye break; // break out of the while loop } } while(play); return 0; } [/hide] I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall: WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me. YouTube Link to comment Share on other sites More sharing options...
Monk Posted May 29, 2010 Share Posted May 29, 2010 He said it was a part of the code. >.> [spoiler=Quotes]Goddammit Monk, stop being so full of win.I am Monk's [bleep] Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 He said it was a part of the code. >.>What I'm talking about would literally have been the line before what he posted... Other than that, it is a complete program. YouTube Link to comment Share on other sites More sharing options...
Cynic Posted May 29, 2010 Share Posted May 29, 2010 Gary Coleman is dead. I'm an INTJ. Wait...Cynic... Are you a girl? Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 Gary Coleman is dead.As is Michael Jackson... YouTube Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 Every1 keeps saying he's dead I don't even know who Gary Coleman was. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 Every1 keeps saying he's dead I don't even know who Gary Coleman was.Who is Gary Coleman?!?!?!?!ragepuncuation?!?!?!?! Gary Coleman is dead. YouTube Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 What i wanan do is when I die pay a bunch of news agencies to say , OMG He's dead! and every1 will be like, did u hear (321ownage) is dead?! and only like 5 people will actually be like, Who the hell is (321ownage). Because I don't think my name will ever be commonly known. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 Suicide bombing an important political building is an easy way to fame... YouTube Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 True... maybe congress. No kids, no innocents, big symbol. I love America but I hate the people who claim to be it's leaders, I think they stopped caring about what the people wanted a long time ago. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 What do you mean "claim to be it's leaders"? :/ I'm pretty sure they are... YouTube Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 My definition of a leader is someone who is interested in the success of their group and actively works to secure their goals. IMO congresspeople these days only care about their own re-election. For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks. But alas let us not discuss politics too heavily in a spam topic. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks.At least he's not a liar like most politicians... YouTube Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 For instance John Murtha, before he died, called his own constituents a bunch of Racist, gun-toting bible thumping rednecks.At least he's not a liar like most politicians...Just a quick joke. No y John Murtha died? Because he was full of [cabbage]! (He actually died because they nicked his gallbladder or something during surgery so the joke is true) God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 Lulz YouTube Link to comment Share on other sites More sharing options...
acenator Posted May 29, 2010 Share Posted May 29, 2010 [hide=code] using namespace std; int main() { srand(time(0)); char start; bool play = true; do { menuScreen(); // print out the opening menu bool menu = true; do { cin >> start; // get player's choice of what to do ///////////////////////////////////// if they want to load a game if (start == 'L' || start == 'l') { char tryagain = 'y'; // in case the file does not exist do { //get the name of the saved character string fname; cout << "What is the name of the saved character? "; cin >> fname; //load the game; if it fails ask if they'd like to try again if(bin_loadGame(fname)) { menu = false; break; } else { cout << "Either the file does not exist or could not be opened.\n"; cout << "Would you like to try to load a different character? (y/n) "; cin >> tryagain; } } while(tryagain == 'y'); if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again, { // ask them to choose to quit, start a new game or load a game again cout << "Enter another choice: "; } } ///////////////////////////////////// if they want to start a new game else if (start == 'N' || start == 'n') { createMap(); // generate the map //get the name they want to give their character cout << "What would you like your name to be? (do not use spaces) "; string name; cin >> name; player.set_name(name); //print the instructions/rules of the game printRules(); menu = false; } ///////////////////////////////////// if they want to leave without doing anything else if (start == 'Q' || start == 'q') { cout << "Good-bye :'(" << endl; return 0; } ///////////////////////////////////// if they do not make a valid choice, exit the game else { cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl; return 0; } } while(menu); RefreshMap(); // print the map for the first time //Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx HANDLE hStdin; DWORD cNumRead, fdwMode, fdwSaveOldMode, i; INPUT_RECORD irInBuf[128]; int counter=0; // Get the standard input handle. hStdin = GetStdHandle(STD_INPUT_HANDLE); if (hStdin == INVALID_HANDLE_VALUE) ErrorExit("GetStdHandle"); // Save the current input mode, to be restored on exit. if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) ErrorExit("GetConsoleMode"); // Enable the window and mouse input events. fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; if (! SetConsoleMode(hStdin, fdwMode) ) ErrorExit("SetConsoleMode"); while(!dead) // while the player is still alive, continue reading keyboard input { if (! ReadConsoleInput( hStdin, // input buffer handle irInBuf, // buffer to read into 128, // size of read buffer &cNumRead) ) // number of records read ErrorExit("ReadConsoleInput"); // Dispatch the events to the appropriate handler. for (i = 0; i < cNumRead; i++) { switch(irInBuf[i].EventType) { case KEY_EVENT: // keyboard input KeyEventProc(irInBuf[i].Event.KeyEvent); break; } } } //once they die, ask if they want to play again cout << "Do you want to play again? (y/n) "; cin >> start; //if they do want to play again if (start == 'y') { play = true; // make sure game will go through another iteration dead = false; // reset the dead variable so that they don't die after one move resetPlayer(); continue; // restart the game } else { play = false; // make sure the game will not go through another iteration cout << "Good-Bye. :'(\n"; // say good-bye break; // break out of the while loop } } while(play); return 0; } [/hide] I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall: WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me.It's C++ and I don't know why I didn't put that line in. There's only one include, though.... It's a header file specifically for include statements just to make the code a little prettier. If you're curious, here's what's in my includes.h header file: #include <fstream> #include <iostream> #include <string> #include <vector> #include <cmath> #include <iomanip> #include <cstdlib> #include <ctime> #include <windows.h> //used for getting inputs #include "Classes.h" // holds all the class definitions #include "globals.h" // holds all the global variable declarations #include "prototypes.h" #include "startProgram.h" // menu function and creates the map //#include "file_io.h" // handles regular file I/O - not in use any more #include "bin_file_io.h" // handles binary file I/O #include "friendly.h" // handles friendly character creation and whatnot #include "fighting.h" // handles enemy creation and fighting #include "bosses.h" // handles boss creation and fighting #include "movement.h" // handles movement and refreshing the map It'd be even longer if I followed convention and had two files for each of my 6 classes (one for the definition, one for the definitions of the member functions), but until I start needing an extraordinary number of classes, each with a crapload of member functions, I think I'll pass on that. > SELECT * FROM users WHERE clue > 0;0 rows returnedThere's no place like 127.0.0.1There are only 10 types of peoplein this world: those who understandbinary and those who don't.This statement is false.$DO || ! $DO ; trytry: command not found Link to comment Share on other sites More sharing options...
SeanyTheSailor Posted May 29, 2010 Share Posted May 29, 2010 Ok lets get off politics. Idk y but i got the Indiana Jones theme stuck in my head. God dammit Seany, STOP SHARING MY MIND" I believe in something greater than myself. A better world. A world without sin. I'm not going to live there. There's no place for me there... I'm a monster.What I do is evil. I have no illusions about it, but it must be done." Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 [hide=code] using namespace std; int main() { srand(time(0)); char start; bool play = true; do { menuScreen(); // print out the opening menu bool menu = true; do { cin >> start; // get player's choice of what to do ///////////////////////////////////// if they want to load a game if (start == 'L' || start == 'l') { char tryagain = 'y'; // in case the file does not exist do { //get the name of the saved character string fname; cout << "What is the name of the saved character? "; cin >> fname; //load the game; if it fails ask if they'd like to try again if(bin_loadGame(fname)) { menu = false; break; } else { cout << "Either the file does not exist or could not be opened.\n"; cout << "Would you like to try to load a different character? (y/n) "; cin >> tryagain; } } while(tryagain == 'y'); if(tryagain != 'y') // if the load is unsuccessful and they don't want to try again, { // ask them to choose to quit, start a new game or load a game again cout << "Enter another choice: "; } } ///////////////////////////////////// if they want to start a new game else if (start == 'N' || start == 'n') { createMap(); // generate the map //get the name they want to give their character cout << "What would you like your name to be? (do not use spaces) "; string name; cin >> name; player.set_name(name); //print the instructions/rules of the game printRules(); menu = false; } ///////////////////////////////////// if they want to leave without doing anything else if (start == 'Q' || start == 'q') { cout << "Good-bye :'(" << endl; return 0; } ///////////////////////////////////// if they do not make a valid choice, exit the game else { cout << "That wasn't one of the 3 options... dummy... doesn't even know how to read..." << endl; return 0; } } while(menu); RefreshMap(); // print the map for the first time //Is used to take input from the keyboard. The code in this section is partially taken from http://www.dreamincode.net/forums/showtopic29209.htm and http://msdn.microsoft.com/en-us/library/ms685035%28VS.85%29.aspx HANDLE hStdin; DWORD cNumRead, fdwMode, fdwSaveOldMode, i; INPUT_RECORD irInBuf[128]; int counter=0; // Get the standard input handle. hStdin = GetStdHandle(STD_INPUT_HANDLE); if (hStdin == INVALID_HANDLE_VALUE) ErrorExit("GetStdHandle"); // Save the current input mode, to be restored on exit. if (! GetConsoleMode(hStdin, &fdwSaveOldMode) ) ErrorExit("GetConsoleMode"); // Enable the window and mouse input events. fdwMode = ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT; if (! SetConsoleMode(hStdin, fdwMode) ) ErrorExit("SetConsoleMode"); while(!dead) // while the player is still alive, continue reading keyboard input { if (! ReadConsoleInput( hStdin, // input buffer handle irInBuf, // buffer to read into 128, // size of read buffer &cNumRead) ) // number of records read ErrorExit("ReadConsoleInput"); // Dispatch the events to the appropriate handler. for (i = 0; i < cNumRead; i++) { switch(irInBuf[i].EventType) { case KEY_EVENT: // keyboard input KeyEventProc(irInBuf[i].Event.KeyEvent); break; } } } //once they die, ask if they want to play again cout << "Do you want to play again? (y/n) "; cin >> start; //if they do want to play again if (start == 'y') { play = true; // make sure game will go through another iteration dead = false; // reset the dead variable so that they don't die after one move resetPlayer(); continue; // restart the game } else { play = false; // make sure the game will not go through another iteration cout << "Good-Bye. :'(\n"; // say good-bye break; // break out of the while loop } } while(play); return 0; } [/hide] I'ma go ahead and assume this is some C language... I'm also going to assume you forgot to copy the first (several?) lines of code :wall: WHAR BE YOUR LIBRARIES/HEADER FILES/WHATEVER THEY'RE CALLED???Unless there is some way to get around all that #include <walrus> stuff... If this is the case, you will learn it to me.It's C++ and I don't know why I didn't put that line in. There's only one include, though.... It's a header file specifically for include statements just to make the code a little prettier. If you're curious, here's what's in my includes.h header file: #include <fstream> #include <iostream> #include <string> #include <vector> #include <cmath> #include <iomanip> #include <cstdlib> #include <ctime> #include <windows.h> //used for getting inputs #include "Classes.h" // holds all the class definitions #include "globals.h" // holds all the global variable declarations #include "prototypes.h" #include "startProgram.h" // menu function and creates the map //#include "file_io.h" // handles regular file I/O - not in use any more #include "bin_file_io.h" // handles binary file I/O #include "friendly.h" // handles friendly character creation and whatnot #include "fighting.h" // handles enemy creation and fighting #include "bosses.h" // handles boss creation and fighting #include "movement.h" // handles movement and refreshing the map It'd be even longer if I followed convention and had two files for each of my 6 classes (one for the definition, one for the definitions of the member functions), but until I start needing an extraordinary number of classes, each with a crapload of member functions, I think I'll pass on that.Post all of teh sauce code at once? :D YouTube Link to comment Share on other sites More sharing options...
acenator Posted May 29, 2010 Share Posted May 29, 2010 Including what's in those standard C++ libraries? :ohnoes: > SELECT * FROM users WHERE clue > 0;0 rows returnedThere's no place like 127.0.0.1There are only 10 types of peoplein this world: those who understandbinary and those who don't.This statement is false.$DO || ! $DO ; trytry: command not found Link to comment Share on other sites More sharing options...
Abc1230 Posted May 29, 2010 Share Posted May 29, 2010 Including what's in those standard C++ libraries? :ohnoes:Whatever is necessary for me to play XD I'm still a novice programmer :wall: YouTube Link to comment Share on other sites More sharing options...
acenator Posted May 29, 2010 Share Posted May 29, 2010 I can just upload an executable somewhere if all you want to do is play what I've got so far (it's complete, but it has some... uhh... balancing issues still; let's just say that you die really fast later on in the game and there's basically no way to win). Does anyone no of a good file-hosting site? I've actually never needed one before. lol > SELECT * FROM users WHERE clue > 0;0 rows returnedThere's no place like 127.0.0.1There are only 10 types of peoplein this world: those who understandbinary and those who don't.This statement is false.$DO || ! $DO ; trytry: command not found Link to comment Share on other sites More sharing options...
Recommended Posts