Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // actor.h
- class Actor {
- private:
- int X;
- int Y;
- unsigned short int W;
- unsigned short int H;
- unsigned short int speedX;
- unsigned short int speedY;
- bool left;
- bool right;
- bool up;
- bool North;
- bool East;
- bool South;
- bool West;
- bool NorthEast;
- bool NorthWest;
- bool SouthEast;
- bool SouthWest;
- public:
- Actor ();
- ~Actor();
- };
- // actor.cc
- #include "actor.h"
- Actor::Actor ()
- : X(0),Y(0),W(14),H(14),speedX(0),speedY(0),
- left(false),right(false),up(false),North(false),
- East(false),South(false),West(false),NorthEast(false),
- NorthWest(false),SouthEast(false),SouthWest(false){}
- Actor::~Actor() { }
- // runner.cc
- #include "actor.h"
- int main() {
- Actor a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement