Advertisement
Guest User

Projectile.h

a guest
Mar 4th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. //
  2. //  Projectile.h
  3. //  Space Invaders
  4. //
  5. //  Created by Marcuz on 25/02/13.
  6. //  Copyright (c) 2013 Marcuz Stolte. All rights reserved.
  7. //
  8.  
  9. #ifndef __Space_Invaders__Projectile__
  10. #define __Space_Invaders__Projectile__
  11.  
  12. #include <SFML/Graphics.hpp>
  13. #include "Ship.h"
  14.  
  15. using namespace sf;
  16.  
  17. class Projectile{
  18. public:
  19.     Projectile();
  20.     void fire(Ship &ship);
  21.     void draw(RenderWindow &window);
  22.    
  23.     bool isFired;
  24.     Vector2i pos;
  25.     Texture projectileTexture;
  26.     Sprite projectile;
  27. };
  28.  
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement