29 lines
457 B
C++
29 lines
457 B
C++
#ifndef BULLET_H__
|
|
#define BULLET_H__
|
|
|
|
#include "define.h"
|
|
#include "vector3.h"
|
|
|
|
class World;
|
|
|
|
class Bullet {
|
|
public:
|
|
Bullet(Vector3f pos, Vector3f dir);
|
|
Bullet(Vector3f pos, Vector3f dir, uint64_t tid);
|
|
~Bullet();
|
|
|
|
bool Update(World* world, float elapsedtime);
|
|
void Transpose(int& x, int& z);
|
|
Vector3f getPos();
|
|
uint64_t getTeamID();
|
|
|
|
private:
|
|
Vector3f m_startpos,
|
|
m_currentpos,
|
|
m_velocity;
|
|
uint64_t m_tid = 0;
|
|
};
|
|
|
|
#endif // BULLET_H__
|
|
|