Exemple #1
0
/*     */   /** @deprecated */
/*     */   public void updateNoDraw()
/*     */   {
/* 472 */     if (this.autoUpdate) {
/* 473 */       long now = getTime();
/* 474 */       long delta = now - this.lastUpdate;
/* 475 */       if (this.firstUpdate) {
/* 476 */         delta = 0L;
/* 477 */         this.firstUpdate = false;
/*     */       }
/* 479 */       this.lastUpdate = now;
/* 480 */       nextFrame(delta);
/*     */     }
/*     */   }
Exemple #2
0
/*     */   public void renderInUse(int x, int y)
/*     */   {
/* 387 */     if (this.frames.size() == 0) {
/* 388 */       return;
/*     */     }
/*     */ 
/* 391 */     if (this.autoUpdate) {
/* 392 */       long now = getTime();
/* 393 */       long delta = now - this.lastUpdate;
/* 394 */       if (this.firstUpdate) {
/* 395 */         delta = 0L;
/* 396 */         this.firstUpdate = false;
/*     */       }
/* 398 */       this.lastUpdate = now;
/* 399 */       nextFrame(delta);
/*     */     }
/*     */ 
/* 402 */     Frame frame = (Frame)this.frames.get(this.currentFrame);
/* 403 */     this.spriteSheet.renderInUse(x, y, frame.x, frame.y);
/*     */   }
Exemple #3
0
/*     */   public void drawFlash(float x, float y, float width, float height, Color col)
/*     */   {
/* 446 */     if (this.frames.size() == 0) {
/* 447 */       return;
/*     */     }
/*     */ 
/* 450 */     if (this.autoUpdate) {
/* 451 */       long now = getTime();
/* 452 */       long delta = now - this.lastUpdate;
/* 453 */       if (this.firstUpdate) {
/* 454 */         delta = 0L;
/* 455 */         this.firstUpdate = false;
/*     */       }
/* 457 */       this.lastUpdate = now;
/* 458 */       nextFrame(delta);
/*     */     }
/*     */ 
/* 461 */     Frame frame = (Frame)this.frames.get(this.currentFrame);
/* 462 */     frame.image.drawFlash(x, y, width, height, col);
/*     */   }
Exemple #4
0
/*     */   public void draw(float x, float y, float width, float height, Color col)
/*     */   {
/* 362 */     if (this.frames.size() == 0) {
/* 363 */       return;
/*     */     }
/*     */ 
/* 366 */     if (this.autoUpdate) {
/* 367 */       long now = getTime();
/* 368 */       long delta = now - this.lastUpdate;
/* 369 */       if (this.firstUpdate) {
/* 370 */         delta = 0L;
/* 371 */         this.firstUpdate = false;
/*     */       }
/* 373 */       this.lastUpdate = now;
/* 374 */       nextFrame(delta);
/*     */     }
/*     */ 
/* 377 */     Frame frame = (Frame)this.frames.get(this.currentFrame);
/* 378 */     frame.image.draw(x, y, width, height, col);
/*     */   }
Exemple #5
0
/*     */   public void update(long delta)
/*     */   {
/* 492 */     nextFrame(delta);
/*     */   }