SQCSimulator2023/SQCSim-common/bullet.h
Jonathan Trottier 602bb84428 fonctionnel
2023-10-30 14:56:04 -04:00

36 lines
597 B
C++

#ifndef BULLET_H__
#define BULLET_H__
#include "define.h"
#include "vector3.h"
#include <map>
#include "player.h"
class World;
class Player;
class Bullet {
public:
Bullet(Vector3f pos, Vector3f dir);
Bullet(Vector3f pos, Vector3f dir, uint64_t tid);
~Bullet();
bool Update(World* world, float elapsedtime, int perframe, std::map<uint64_t, Player*> m_mapPlayer);
void Transpose(int& x, int& z);
Vector3f getPos() const;
Vector3f getVel() const;
uint64_t getTeamID();
private:
Vector3f m_startpos,
m_currentpos,
m_velocity;
uint64_t m_tid = 0;
};
#endif // BULLET_H__