Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <ncurses.h>
#include <string>
////////sqlite3 installed via: sudo apt-get install libsqlite3-dev///////
#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <cstdlib>
//#include "Create_Game_Screen.h"
#include "Char_Creation.h"
#include "Main_Menu.h"
#include "Monster.h"
#include "Monster_Gen.h"
#include "Player.h"
#include "Assign_Stats.h"
using namespace std;
void print_menu(WINDOW *menu_win, int highlight, int n_choices, char **choices);
int Char_Creation();
void Main_Menu();
int Sql_Qu(int argc, char* argv[], char *sql);
int Monster_Gen(int argc, char* argv[], Monster& Mon1, Monster& Mon2, Monster& Mon3);
int Assign_Stats(Player& P1);
int Create_Game_Screen(Player& P1, Monster& Mon1, Monster& Mon2, Monster& Mon3);
int Combat(Player& P1, Monster& Mon);
int Path2(Player& P1, Monster& Mon);
int main(int argc, char* argv[])
{
Player P1;
Monster Mon1;
Monster Mon2;
Monster Mon3;
Monster_Gen(argc,argv,Mon1,Mon2,Mon3); //Generate Monsters From Database
/*
//cout << Mon1.MonsterName << " " << Mon1.MonsterTitle << " " << Mon1.MonsterType <<endl;
//cout << Mon2.MonsterName << " " << Mon2.MonsterTitle << " " << Mon2.MonsterType <<endl;
//cout << Mon3.MonsterName << " " << Mon3.MonsterTitle << " " << Mon3.MonsterType <<endl;
*/
Main_Menu(); //Display Main Menu
clear();
P1.PlayerClass = 4;
while (P1.PlayerClass == 4)
{
P1.PlayerClass = Char_Creation(); //Open Char Select
cout << P1.PlayerClass << endl;
}
Assign_Stats(P1); //Assign player stats depending on class chosen
clear();
Create_Game_Screen(P1,Mon1, Mon2, Mon3);
Combat(P1, Mon1);
return 0;
}