-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
33 lines (21 loc) · 844 Bytes
/
main.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
//Header files
#include "SFML/Graphics.hpp"
#include "SFML/Audio.hpp"
#include <iostream>
#include <Screens.h>
#include <fstream>
#include "Menu.h"
#include "Game.h"
#include "Neural.h"
#include "Manual.h"
int main()
{
std::cout<<"ACTIVITY LOG:"<<std:: endl;
sf::RenderWindow window; //Declaring and initializing the window
Screens *screenPtrMenu; //Screens is abstract class and is base class to Menu,Game,Credits,Score
//And creating pointer to object using abstract class
Menu menu; //Creating menu Object of Menu class
screenPtrMenu = &menu; //Assigning address of menu obj to screenPtrMenu pointer
screenPtrMenu -> drawWindow(window); //Accessing drawWindow function of Menu class using arrow operator
return 0;
}