SHARE
TWEET

Untitled

a guest Jun 17th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Player extends Thread {
  2.  private  Graphics graphic;
  3.  private Graphics2D g2;
  4.  private int x;
  5.  private int y;
  6.  private DrawPanel panel;
  7.     public Player(int x, int y,DrawPanel panel)
  8.     {
  9.         this.x = x;
  10.         this.y = y;
  11.         this.panel = panel;
  12.         graphic = panel.getGraphics();
  13.         g2 = (Graphics2D) graphic;
  14.         g2.fillOval( column,row, 10, 10);
  15.     }
  16.     public void run()
  17.     {
  18.      //startAnimation(this.x,this.y,destination.x,destination.y)
  19.     }
  20.  
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top