degats dans bullet
This commit is contained in:
@@ -3,8 +3,11 @@
|
||||
|
||||
#include "define.h"
|
||||
#include "vector3.h"
|
||||
#include <map>
|
||||
#include "player.h"
|
||||
|
||||
class World;
|
||||
class Player;
|
||||
|
||||
class Bullet {
|
||||
public:
|
||||
@@ -12,7 +15,7 @@ public:
|
||||
Bullet(Vector3f pos, Vector3f dir, uint64_t tid);
|
||||
~Bullet();
|
||||
|
||||
bool Update(World* world, float elapsedtime, int perframe);
|
||||
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;
|
||||
@@ -23,6 +26,8 @@ private:
|
||||
m_currentpos,
|
||||
m_velocity;
|
||||
uint64_t m_tid = 0;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // BULLET_H__
|
||||
|
Reference in New Issue
Block a user