Guest User

goal

a guest
Apr 26th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.awt.*;
  2.  
  3. public class goal
  4. {
  5. int rx;
  6. int ry;
  7. protected Rectangle goalRec;
  8. map m;
  9.  
  10. public goal(map m)
  11. {
  12. this.m=m;
  13. setx(m.goalSpawnx());
  14. sety(m.goalSpawny());
  15. goalRec=new Rectangle(rx,ry,48,48);
  16. }
  17.  
  18. public void setx(int n)
  19. {
  20. rx=n*48;
  21. }
  22.  
  23. public void sety(int n)
  24. {
  25. ry=n*48;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment