-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectiles.h
44 lines (39 loc) · 998 Bytes
/
Projectiles.h
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
#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <unordered_map>
#include <vector>
#include <string>
#include <cstdlib>
#include <ctime>
// < = <
// > = >
// &le = <=
// &ge = >=
using namespace std;
using namespace sf;
class Projectiles
{
protected:
int x, y, state, origin;
float moveSpeed;
public:
SoundBuffer playerATK_SB;
Sound playerATK;
Texture texture;
Sprite sprite;
Vector2f Behaviour;
Projectiles(int _X, int _Y, int _MOVESPEED, Texture& _TEXTURE, Vector2f _BEHAVIOUR,int _ORIGIN);
void move(Vector2f _MOVE);
Vector2f getPos() const;
Sprite getSprite() const;
Vector2f getBehaviour() const;
void setBehaviour(Vector2f _NEW);
int getState() const ;
int getOrigin() const ;
void setOrigin(int i);
void setState(int i = 0);
void reverseBehaviour();
void stop();
};