2023-09-18 15:56:17 -04:00
|
|
|
#ifndef BULLET_H__
|
|
|
|
#define BULLET_H__
|
|
|
|
|
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
class World;
|
|
|
|
|
|
|
|
class Bullet {
|
|
|
|
public:
|
|
|
|
Bullet(Player& player);
|
|
|
|
~Bullet();
|
|
|
|
|
|
|
|
bool Update(World* world, float elapsedtime);
|
|
|
|
void Transpose(int& x, int& z);
|
2023-09-29 12:04:08 -04:00
|
|
|
Vector3f& getPos();
|
2023-09-18 15:56:17 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
Vector3f m_startpos;
|
|
|
|
Vector3f m_currentpos;
|
|
|
|
Vector3f m_velocity;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BULLET_H__
|
|
|
|
|