-
Notifications
You must be signed in to change notification settings - Fork 2
/
.merge_file_a09448
117 lines (103 loc) · 2.85 KB
/
.merge_file_a09448
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#ifndef PERMONKEY_H
#define PERMONKEY_H
#include "GameObject.h"
#include "Sprite.h"
#include "Timer.h"
#include "Character.h"
<<<<<<< .merge_file_a09448
#include "Timer.h"
#include <queue>
#include "Sound.h"
class Permonkey : public GameObject{
public:
Permonkey(float x, float y, Point lTile, TileMap tileMap, unordered_map<string, vector<string>> objList);
Permonkey(ifstream &file, TileMap tileMap, unordered_map<string, vector<string>> objList);
~Permonkey();
void Update(float dt, vector<unique_ptr<GameObject>> *objectArray);
void Save(ofstream &file);
void Update(float dt);
=======
#include "GameObject.h"
#include <queue>
class Permonkey : public GameObject{
public:
Permonkey(float x, float y);
~Permonkey();
void Update(float dt);
>>>>>>> .merge_file_a07488
void Render(int cameraX, int cameraY);
bool IsDead();
void NotifyCollision (GameObject& other);
bool Is(string type);
<<<<<<< .merge_file_a09448
bool IsCharacter();
string Type();
void Editing(bool editing);
void AddObjective(float x, float y, Point tile);
void AddObjective(Point pos);
void AddObjective(vector<int> path);
void Go(Point pos);
void PathAStar(Point pos, vector<int> heuristic, vector<int> occupancyGrid);
void PathAStar(int posX, int posY, vector<int> heuristic, vector<int> occupancyGrid);
void Move (float dt);
void MakeChoice();
int GetHunger();
void SetHunger(int hunger);
string GetChoice();
int SearchObject(vector<unique_ptr<GameObject>> *objectArray);
ActionCharacter GetAction();
int GetObjectIndex();
void UseObject(vector<unique_ptr<GameObject>> *objectArray, int index);
void Classify(unordered_map<string, vector<string>> objList);
Rect GetBox();
Point GetTile();
void ChooseGoals();
void ChangeSelection(int reference);
//Object functions
void MoveTo(int x, int y);
bool SettlePos(vector<int> obstacleMap);
vector<int> GetHeuristic(int i);
vector<int> GetAttributes();
vector<Point> GetAccessPoints();
vector<string>GetTextAttributes();
vector<pair<string,string>> preferredObjects, otherObjects;
private:
ActionCharacter actionCharacter;
Sprite character;
Point permonkeyTile;
Point objectiveTile;
Point objective;
Point objectiveMem;
Timer temp;
int crt;
Point desvio;
bool flagDesvio;
TileMap tileMap;
vector<int> path;
int hunger;
int objectSelect;
Choice choice, state;
Timer timer, rest;
bool arrived, found, inRoom;
string preference, roomChoice;
vector<pair<string,string>> goals;
pair<string, string> lastGoal;
int actualGoal;
Sound step;
float soundControl;
bool gone;
=======
string Type();
void AddObjective(float x, float y);
void AddObjective(Point pos);
void Go(Point pos);
void Move (float dt);
private:
Sprite character;
Point objective;
int objectiveX, objectiveY;
Timer temp;
int crt;
>>>>>>> .merge_file_a07488
};
#endif // PERMONKEY_H