-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinalMain.cpp
78 lines (72 loc) · 2.65 KB
/
finalMain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/******************************************************************************
** Program Name: Furry Chaotic Darkness
** Author: Lauren "Ren" Demeis-Ortiz
** Date: 12/4/19
** Description: This is a game where the user is a cat that is trying to lure
** the dog out of the house before it's human comes home. User
** must move quickly or they lose points.
** Credit: Ideas for using files for maps and ncurses came from Jacob Leno's
** final project on code sharing page.
** https://oregonstate.instructure.com/courses/1738874/pages/
** code-sharing?module_item_id=18940565
******************************************************************************/
#include "Menu.hpp"
#include "Game.hpp"
#include <iostream>
#include <string>
//remove#include <ncurses.h>
int main()
{
int userChoice = 0;
// Menu startMenu
// ("Enter number of choice: \n1. Play \n2. Instructions \n3. Quit", 4);
// startMenu.runMenu();
// int userChoice = startMenu.getChoice();
while (userChoice != 3)
{
Game g1;
userChoice = g1.runStartMenu();
switch(userChoice)
{
case 1:
g1.runGame();
//std::cout << "chose1";
break;
case 2:
//std::cout << "chose22";
g1.runInstructions();
break;
case 3:
std::cout << "Quitting...\n\n";
}
//remove char charInput = '0';
//remove int time = -1;
//remove int score = 100;
//remove
//remove while (charInput != 'q')
//remove {
//remove initscr(); // https://jbwyatt.com/ncurses.html#input
//remove halfdelay(10);// https://linux.die.net/man/3/halfdelay
//remove // Get and validate input
//remove std::cout << "Enter Command:" ;
//remove charInput = getch();
//remove if (charInput == ERR && time > 5)
//remove {
//remove std::cout << "point deducted: " << --score;
//remove }
//remove endwin();// https://jbwyatt.com/ncurses.html#input
//remove if(time >= 0)
//remove {
//remove
//remove std::cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
//remove << "\ntest\ntest\ntest\ntest\ntest\ntest\ntest\n";
//remove }
//remove std::cout << "second timer: " << ++time <<"\n\n";
//remove std::cout << "score: " << score << "\n\n";
//remove }
//remove // Run start menu
// startMenu.runMenu();
// userChoice = startMenu.getChoice();
}
return 0;
}