mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 04:41:47 +01:00
21 lines
375 B
C++
21 lines
375 B
C++
#pragma once
|
|
#include "Texture.h"
|
|
|
|
class Particle {
|
|
public:
|
|
Particle() = default;
|
|
Particle(const Vector2f& pos, const Vector2f& velocity,float lifetime, Texture* pTexture);
|
|
void Update(float elapsedSec);
|
|
void Draw() const;
|
|
bool IsDead() const;
|
|
|
|
private:
|
|
Vector2f m_Position;
|
|
Vector2f m_Velocity;
|
|
Vector2f m_Acceleration;
|
|
|
|
float m_LifeTime;
|
|
|
|
Texture* m_pTexture;
|
|
};
|