28 lines
408 B
C
28 lines
408 B
C
|
#ifndef BULLET_H__
|
||
|
#define BULLET_H__
|
||
|
|
||
|
#include "audio.h"
|
||
|
#include "player.h"
|
||
|
#include "vertexbuffer.h"
|
||
|
#include "texture.h"
|
||
|
|
||
|
class World;
|
||
|
|
||
|
class Bullet {
|
||
|
public:
|
||
|
Bullet(Player& player);
|
||
|
~Bullet();
|
||
|
|
||
|
bool Update(World* world, Transformation& tran, float elapsedtime);
|
||
|
void Transpose(int& x, int& z);
|
||
|
|
||
|
private:
|
||
|
Vector3f m_startpos;
|
||
|
Vector3f m_currentpos;
|
||
|
Vector3f m_velocity;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // BULLET_H__
|
||
|
|