Advertisement
Guest User

Ship.h

a guest
Mar 4th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. //
  2. //  Ship.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__Ship__
  10. #define __Space_Invaders__Ship__
  11.  
  12. #include <SFML/Graphics.hpp>
  13. #include "AlienProjectile.h"
  14.  
  15. using namespace sf;
  16.  
  17. class Ship{
  18. public:
  19.     Ship();
  20.     void draw(RenderWindow &window);
  21.     void moveLeft();
  22.     void moveRight();
  23.     void checkCollision(AlienProjectile &alienProj, int &lives);
  24.    
  25.     Vector2f pos;
  26.     Texture shipTexture;
  27.     Sprite ship;
  28. };
  29.  
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement