Advertisement
Guest User

Untitled

a guest
Jun 1st, 2013
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. // actor.h
  2. class Actor {
  3.   private:
  4.     int X;
  5.     int Y;
  6.     unsigned short int W;
  7.     unsigned short int H;
  8.  
  9.     unsigned short int speedX;
  10.     unsigned short int speedY;
  11.  
  12.     bool left;
  13.     bool right;
  14.     bool up;
  15.  
  16.     bool North;
  17.     bool East;
  18.     bool South;
  19.     bool West;
  20.     bool NorthEast;
  21.     bool NorthWest;
  22.     bool SouthEast;
  23.     bool SouthWest;
  24.   public:
  25.     Actor ();
  26.     ~Actor();
  27. };
  28.  
  29. // actor.cc
  30. #include "actor.h"
  31. Actor::Actor ()
  32.   :  X(0),Y(0),W(14),H(14),speedX(0),speedY(0),
  33.      left(false),right(false),up(false),North(false),
  34.      East(false),South(false),West(false),NorthEast(false),
  35.      NorthWest(false),SouthEast(false),SouthWest(false){}
  36. Actor::~Actor() { }
  37.  
  38. // runner.cc
  39. #include "actor.h"
  40. int main() {
  41.   Actor a;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement