Advertisement
Guest User

Bullet.h

a guest
Oct 1st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "game.h"
  4.  
  5. using namespace glm;
  6.  
  7. namespace Tmpl8
  8. {
  9.     class Surface;
  10.     class Bullet
  11.     {
  12.     public:
  13.         Bullet();
  14.         ~Bullet();
  15.  
  16.         void SpawnBullet();
  17.         void Update(int playerPosX, int playerPosY);
  18.         void Draw(Surface *screen);
  19.         void OnCollision();
  20.         bool CanDrawBullet();
  21.  
  22.         bool isSpawned;
  23.         bool playerAlive;
  24.         vec2 bulletPos;
  25.     private:
  26.         float velocity;
  27.     };
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement