Shmup/src/bullet.h

35 lines
502 B
C
Raw Normal View History

2023-01-20 21:11:57 +01:00
#ifndef BULLET_H
#define BULLET_H
#include <cstdint>
#include <num/num.h>
2023-02-05 10:05:05 +01:00
enum
{
BULLET_NORMAL,
BULLET_BLUE,
BULLET_LASER,
BULLET_ENEMY_BLUE,
};
2023-01-20 21:11:57 +01:00
class Bullet
{
public:
2023-02-05 10:05:05 +01:00
Bullet( uint16_t lx, uint16_t ly, int16_t dx, int16_t dy, uint8_t id );
2023-01-20 21:11:57 +01:00
~Bullet();
void Update( float dt );
void Render();
uint8_t ID;
libnum::num x, y;
libnum::num sx, sy;
2023-01-21 14:04:58 +01:00
uint8_t strength;
2023-01-20 21:11:57 +01:00
bool toberemoved;
};
#endif //PARTICLES_H