Guest User

Untitled

a guest
Jan 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 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. #include "Player.h"
  11.  
  12. Player::Player(int x, int y, HTEXTURE tex, float FPS, playerVariable){
  13.     this->x = x;
  14.     this->y = y;
  15.     this->tex = tex;
  16.     this->FPS = FPS;
  17. }
  18. //Setters
  19. void Object::SetX(int x){
  20.     this->x = x;
  21. }
  22.  
  23. void Object::SetY(int y){
  24.     this->x = x;
  25. }
  26.  
  27. void Object::SetSpeed(int FPS){
  28.     this->FPS = FPS;
  29.     anim->SetSpeed(FPS);
  30. }
  31.  
  32. void Object::SetAngle(float angle){
  33.     this->angle = angle;
  34. }
  35.  
  36. void Object::SetVelocity(float velocity){
  37.     this->velocity = velocity;
  38. }
  39.  
  40. //Getters
Add Comment
Please, Sign In to add comment