-
Notifications
You must be signed in to change notification settings - Fork 0
/
Nibbler.hpp
52 lines (45 loc) · 845 Bytes
/
Nibbler.hpp
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
//
// Nibbler.hpp for in /home/quach_a/Lab/cpp_nibbler
//
// Made by Jonathan Quach
// Login <jonathan.quach@epitech.eu>
//
// Started on Tue Mar 24 14:46:15 2015 Jonathan Quach
// Last update Sun Apr 5 07:03:42 2015 Daniel Han
//
#ifndef _NIBBLER_HPP_
# define _NIBBLER_HPP_
#include <cstdlib>
#include <string>
#include <vector>
#include <dlfcn.h>
#include <sstream>
#include <iostream>
#include "IGui.hpp"
#include "Map.hpp"
class Nibbler
{
//
// Attributs
//
private:
int _winX;
int _winY;
int _caseX;
int _caseY;
void *_handle;
IGui *_gui;
bool _loop;
//
// Coplien form
//
public:
Nibbler(std::vector<std::string> const & argv);
Nibbler(Nibbler const &);
Nibbler &operator=(Nibbler const &);
~Nibbler();
public:
void launchGame();
void *getHandler() const;
};
#endif /* !_NIBBLER_HPP_ */