Пример #1
0
 @Override
 public void onStartContact(PhysicsThing otherBody, int thisType, int otherType) {
   super.onStartContact(otherBody, thisType, otherType);
   if (thisType == Constants.POTION_FIXTURE) {
     if (otherType == Constants.DAMAGE_AREA_FIXTURE) {
       stage.setPotionEaten();
       markOnDelete();
     } else if (otherType == Constants.FIELD_FIXTURE) {
       SkillField damager = (SkillField) otherBody;
       damager.creator.setSkillOk();
       disable = true;
       if (damager.specialType == Constants.SPECIAL_OLD) {
         shouldDie = true;
         deathTimer = 1;
         blinktime = 0.1f;
       }
     }
   }
 }