Exemple #1
0
 public void process(long ticks, Level level) {
   super.process(ticks, level);
   if (shield.getVisibility()) {
     shield.rotateY((float) ticks * 0.3f);
     // shield.setScale(1+(float)Math.sin(shield.getZAxis().x)/6f);
   }
 }
Exemple #2
0
 public void setToLocalObject(LocalObject lo) {
   super.setToLocalObject(lo);
   if (lo.isInvincible() && !shield.getVisibility()) {
     shield.setVisibility(true);
   } else {
     if (!lo.isInvincible()) {
       shield.setVisibility(false);
     }
   }
 }
Exemple #3
0
 public void removeFromWorld(World world) {
   super.removeFromWorld(world);
   world.removeObject(shield);
 }
Exemple #4
0
 public void addToWorld(World world) {
   super.addToWorld(world);
   world.addObject(shield);
 }