Guest User

Box.h

a guest
Aug 30th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #ifndef BOX_H
  2. #define BOX_H
  3.  
  4. #include "Box2D.h"
  5. #include <SFML/Graphics.hpp>
  6.  
  7. class Box
  8. {
  9.     public:
  10.         Box();
  11.         Box(b2World* World, int MouseX, int MouseY);
  12.         virtual ~Box();
  13.  
  14.         void update();
  15.  
  16.         sf::Sprite getSprite();
  17.  
  18.         void setTexture(sf::Texture);
  19.  
  20.     protected:
  21.         sf::Sprite sprite;
  22.         b2BodyDef BodyDef;
  23.         b2Body* Body;
  24.         b2PolygonShape Shape;
  25.         b2FixtureDef FixtureDef;
  26.     private:
  27. };
  28.  
  29. #endif // BOX_H
Advertisement
Add Comment
Please, Sign In to add comment