示例#1
0
 public Jet(Vector2f position, Vector2f velocity, boolean myTeam) {
   // Visibility of jet defaults to true if it's yours, false if it's the enemy's
   super(position, velocity, myTeam);
   this.myTeam = myTeam;
   radius = 0.05;
   visibilityRadius = 0.175;
   if (myTeam) {
     img = ImageLib.getImage("Images/Jet blue.png");
   } else {
     img = ImageLib.getImage("Images/Jet red.png");
   }
 }
示例#2
0
  @Override
  public void innerDraw(SkunkJets game) {
    if (game.jet == this) {
      GL11.glPushMatrix();
      GL11.glScalef(.06f, .06f, 1);
      drawCircle();
      GL11.glPopMatrix();
    }

    ImageLib.drawImage(img, 0, 0, -90, 64, 64);
  }
 protected void executeImageTask(String url, String appCode) {
   ImageDownloadTask task = new ImageDownloadTask(url, appCode, mHandler);
   ImageLib.inst().setDownloadFlag(url);
   mThreadPool.execute(task);
 }