Cleanup de l'objet Bullet
This commit is contained in:
		| @@ -1,23 +1,26 @@ | ||||
| #ifndef BULLET_H__ | ||||
| #define BULLET_H__ | ||||
|  | ||||
| #include "player.h" | ||||
| #include "define.h" | ||||
| #include "vector3.h" | ||||
|  | ||||
| class World; | ||||
|  | ||||
| class Bullet { | ||||
| public: | ||||
| 	Bullet(Player& player); | ||||
| 	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(); | ||||
| 	Vector3f getPos(); | ||||
| 	uint64_t getTeamID(); | ||||
|  | ||||
| private: | ||||
| 	Vector3f m_startpos; | ||||
| 	Vector3f m_currentpos; | ||||
| 	Vector3f m_velocity; | ||||
| 	Vector3f m_startpos,  | ||||
| 			 m_currentpos,  | ||||
| 			 m_velocity; | ||||
| 	uint64_t m_tid = 0; | ||||
| }; | ||||
|  | ||||
| #endif // BULLET_H__ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user