Archived
Restrukt classes WIP
This commit is contained in:
+5
-4
@@ -5,11 +5,12 @@
|
||||
#include "SFML/Graphics/Texture.hpp"
|
||||
#include "Bullet.h"
|
||||
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
class Actor {
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
public:
|
||||
Actor(int x, int y, std::string path);
|
||||
|
||||
|
||||
+2
-2
@@ -11,14 +11,14 @@ class Bullet {
|
||||
};
|
||||
|
||||
public:
|
||||
Bullet(float x, float y, sf::Texture &texture);
|
||||
Bullet(float x, float y);
|
||||
sf::Sprite &getSprite();
|
||||
void setSpeed(float speed);
|
||||
bool getStatus() const;
|
||||
void update();
|
||||
static sf::Texture bulletTexture;
|
||||
private:
|
||||
sf::Sprite bulletSprite;
|
||||
sf::Texture bulletTexture;
|
||||
Position bulletPosition;
|
||||
float bulletSpeed;
|
||||
bool outOfBounds;
|
||||
|
||||
Reference in New Issue
Block a user