-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject.h
More file actions
52 lines (39 loc) · 900 Bytes
/
object.h
File metadata and controls
52 lines (39 loc) · 900 Bytes
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
#ifndef OBJECT_H
#define OBJECT_H
// For random
#include "time.h"
#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"
#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include "test.h"
#include "global.h"
#include "non_living_things.h"
#include "targetable.h"
class Object: public Non_living_things, public Targetable
{
private:
// x y positions of object
int x, y;
// The amount of objects picked up
int wins;
// used for score
SDL_Surface* score ;
TTF_Font* font ;
SDL_Color* score_color ;
// Use for Image
SDL_Surface* object;
public:
// Initialize variables
Object(std::string filename);
// Procedure for when the object was found
void respawn();
// New position for the object
void new_position();
void show();
// Get the amount of winds
int get_wins();
};
#endif // OBJECT_H