Advertisement
zCool

Entity.h

May 20th, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #ifndef ENTITY_H
  2. #define ENTITY_H
  3.  
  4. #include <string>
  5.  
  6. class Entity
  7. {
  8. protected:
  9.     int m_X;
  10.     int m_Y;
  11.     std::string m_sprite;
  12.  
  13. public:
  14.     Entity(int X, int Y, std::string sprite);
  15.     int getX() { return m_X; }
  16.     int getY() { return m_Y; }
  17.     void setX(int X) { m_X = X; }
  18.     void setY(int Y) { m_Y = Y; }
  19.     std::string getSprite() { return m_sprite; }
  20. };
  21. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement