28 lines
410 B
C++
28 lines
410 B
C++
#ifndef LASER_H
|
|
#define LASER_H
|
|
|
|
#include <cstdint>
|
|
#include <num/num.h>
|
|
|
|
|
|
class Laser
|
|
{
|
|
public:
|
|
Laser( uint16_t _sx, uint16_t _sy, int16_t _dx, int16_t _dy, uint16_t _id );
|
|
~Laser();
|
|
void Update( float dt );
|
|
void Render( void );
|
|
|
|
uint8_t ID;
|
|
|
|
libnum::num sx, sy;
|
|
libnum::num dx, dy;
|
|
|
|
uint8_t strength;
|
|
|
|
bool toberemoved;
|
|
};
|
|
|
|
|
|
|
|
#endif |