示例#1
0
 public void dispose() {
   super.dispose();
   if (texture != null) {
     texture.dispose();
   }
   if (batch != null) {
     batch.dispose();
   }
 }
示例#2
0
 protected void processTouchDragged() {
   if (!locked) {
     if (getContainer() != null) {
       getContainer().sendToFront(this);
     }
     this.move(this.input.getTouchDX(), this.input.getTouchDY());
     super.processTouchDragged();
   }
 }
示例#3
0
 @Override
 public void dispose() {
   super.dispose();
   if (print != null) {
     print.dispose();
     print = null;
   }
   if (animation != null) {
     animation.dispose();
     animation = null;
   }
 }
示例#4
0
 @Override
 public void update(long elapsedTime) {
   if (!visible) {
     return;
   }
   super.update(elapsedTime);
   if (print.isComplete()) {
     animation.update(elapsedTime);
   }
   printTime += elapsedTime;
   if (printTime >= totalDuration) {
     printTime = printTime % totalDuration;
     print.next();
   }
 }
示例#5
0
 protected void processTouchPressed() {
   if (!input.isMoving()) {
     int posx = 0;
     int posy = 0;
     if (getContainer() == null) {
       posx = (int) ((getX() + input.getTouchX()) / blockSize);
       posy = (int) ((getY() + input.getTouchY()) / blockSize);
     } else {
       posx = (int) ((getContainer().getX() + getX() + input.getTouchX()) / blockSize);
       posy = (int) ((getContainer().getY() + getY() + input.getTouchY()) / blockSize);
     }
     mapId = fied2d.getType(posx, posy);
     super.processTouchPressed();
   }
 }
示例#6
0
 protected void processTouchReleased() {
   if (!input.isMoving()) {
     super.processTouchReleased();
   }
 }
示例#7
0
 protected void processTouchClicked() {
   if (!input.isMoving()) {
     super.processTouchClicked();
   }
 }