Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Tufo::Tufo(int x_,int y_,TAnimatedSpriteRef ufo_)
  2. {
  3. Position_x=x_;
  4. Position_y=y_;
  5. Ufo_=ufo_;
  6. Ufo_=TAnimatedSprite::Create();
  7. Ufo_->SetTexture(TAnimatedTexture::Get("anim/ufo3"));
  8. vector<TSpriteRef> plasmas=vector<TSpriteRef>();
  9. }
  10.  
  11. Tufo::Tufo()
  12. {
  13. Position_x=0;
  14. Position_y=0;
  15. Ufo_=TAnimatedSprite::Create();
  16. Ufo_->SetTexture(TAnimatedTexture::Get("anim/ufo3"));
  17. }
  18.  
  19. TAnimatedSpriteRef Tufo::getSprite()
  20. {
  21. return Ufo_;
  22. }
  23. void Tufo::setSprite(TAnimatedSpriteRef &s)
  24. {
  25. Ufo_=s;
  26. }
  27.  
  28. Tufo::~Tufo()
  29. {
  30. }
  31. void Tufo::setPosition_X(int x_){
  32. Position_x=x_;
  33. }
  34. void Tufo::setPosition_Y(int y_){
  35. Position_y=y_;
  36. }
  37. int Tufo::getPosition_X(){
  38. return Position_x;
  39. }
  40. int Tufo::getPosition_Y(){
  41. return Position_y;
  42. }
  43. vector<TSpriteRef>& Tufo::getPlasmas(){
  44. return plasmas;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement