Advertisement
Guest User

Untitled

a guest
Oct 17th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. /*
  2. ** Object
  3. **
  4. */
  5. #include <hge.h>
  6. #include <hgesprite.h>
  7. #include <hgeanim.h>
  8. #include <math.h>
  9. #include "Object.h"
  10.  
  11. Object::Object(int x, int y, HTEXTURE tex, float FPS){
  12.     this->x = x;
  13.     this->y = y;
  14.     this->tex = tex;
  15.     this->FPS = FPS;
  16. }
  17. //Setters
  18. void Object::SetX(int x){
  19.     this->x = x;
  20. }
  21.  
  22. void Object::SetY(int y){
  23.     this->x = x;
  24. }
  25.  
  26. void Object::SetSpeed(float FPS){
  27.     this->FPS = FPS;
  28.     anim->SetSpeed(FPS);
  29. }
  30.  
  31. void Object::SetAngle(float angle){
  32.     this->angle = angle;
  33. }
  34.  
  35. void Object::SetVelocity(float velocity){
  36.     this->velocity = velocity;
  37. }
  38.  
  39. //Getters
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement