Who knows
This commit is contained in:
parent
eaf5a55d18
commit
32e50969b4
45 changed files with 38346 additions and 38306 deletions
44
Projectile.h
44
Projectile.h
|
|
@ -1,22 +1,22 @@
|
|||
//
|
||||
// Created by Benjamin on 4/20/2021.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_PROJECTILE_H
|
||||
#define SFML_TEMPLATE_PROJECTILE_H
|
||||
|
||||
#include "Shootable.h"
|
||||
|
||||
class Projectile : public Shootable {
|
||||
public:
|
||||
Projectile() = default;
|
||||
|
||||
Projectile(const sf::Texture& texture, const sf::IntRect &rect, double scale, int rows, int cols, int xOffset, int yOffset, int frameDelay, double velocity, double damage, double _range) : Shootable(texture, rect, scale, rows, cols, xOffset, yOffset, frameDelay, damage) {
|
||||
setVelocity(velocity);
|
||||
|
||||
lifetime = _range/velocity;
|
||||
range = _range;
|
||||
}
|
||||
};
|
||||
|
||||
#endif //SFML_TEMPLATE_PROJECTILE_H
|
||||
//
|
||||
// Created by Benjamin on 4/20/2021.
|
||||
//
|
||||
|
||||
#ifndef SFML_TEMPLATE_PROJECTILE_H
|
||||
#define SFML_TEMPLATE_PROJECTILE_H
|
||||
|
||||
#include "Shootable.h"
|
||||
|
||||
class Projectile : public Shootable {
|
||||
public:
|
||||
Projectile() = default;
|
||||
|
||||
Projectile(const sf::Texture& texture, const sf::IntRect &rect, double scale, int rows, int cols, int xOffset, int yOffset, int frameDelay, double velocity, double damage, double _range) : Shootable(texture, rect, scale, rows, cols, xOffset, yOffset, frameDelay, damage) {
|
||||
setVelocity(velocity);
|
||||
|
||||
lifetime = _range/velocity;
|
||||
range = _range;
|
||||
}
|
||||
};
|
||||
|
||||
#endif //SFML_TEMPLATE_PROJECTILE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue