24 lines
439 B
C++
24 lines
439 B
C++
#ifndef PARTICLES_H
|
|
#define PARTICLES_H
|
|
|
|
#include <cstdint>
|
|
#include <num/num.h>
|
|
|
|
class Particle
|
|
{
|
|
public:
|
|
Particle( uint16_t lx, uint16_t ly, uint8_t id );
|
|
~Particle();
|
|
void Update( float dt );
|
|
void Render();
|
|
|
|
uint8_t ID;
|
|
|
|
libnum::num x, y;
|
|
libnum::num sx, sy;
|
|
libnum::num age, maxage, incage;
|
|
libnum::num size;
|
|
bool toberemoved;
|
|
};
|
|
|
|
#endif //PARTICLES_H
|