Examples of Zombie


Examples of Hexel.things.types.Zombie

            engine.addThing(fc);
            engine.setCamera(fc);
          }
        }
        else if (thing instanceof Zombie){
          Zombie zombie = (Zombie)thing;
          if (zombie.health <= 0){
            thingsToRemove.add(zombie);
          }
        }
        else if (thing instanceof Deer){
View Full Code Here

Examples of Hexel.things.types.Zombie

        int numberToSpawn = engine.zsp.getNumberToSpawn();
        if (numberToSpawn <= 0)
          return;
        double lightLevel = engine.getAmbientLight() - abt.naturalLightLevel*1.0/BlockTransparent.MAX_LIGHT_LEVEL;
        if (lightLevel < .5 && Util.hashToDouble(Util.hash(Hexel.session.seed, step, bx, by, bz)) < .25){
          Zombie zombie = new Zombie(x, y, z, engine.getThingBridge());
          engine.addThing(zombie);
          engine.zsp.spawnZombies(1);
        }
      }

View Full Code Here

Examples of com.happyprog.tdgotchi.level.Zombie

    tamagotchi = mock(Tamagotchi.class);
    testSubscriber = mock(TestSubscriber.class);
    refactoringSubscriber = mock(RefactoringSubscriber.class);
    levels = mock(LevelManager.class);

    when(levels.getZombie()).thenReturn(new Zombie());
    when(levels.getBeginner()).thenReturn(new Beginner());
    when(levels.getIntermediate()).thenReturn(new Intermediate());
    when(levels.getPro()).thenReturn(new Pro());

    scoreboard = new Scoreboard(view, tamagotchi, testSubscriber, refactoringSubscriber, levels);
View Full Code Here

Examples of com.mojang.ld22.entity.Zombie

      int lvl = random.nextInt(maxLevel - minLevel + 1) + minLevel;
      if (random.nextInt(2) == 0)
        mob = new Slime(lvl);
      else
        mob = new Zombie(lvl);

      if (mob.findStartPos(this)) {
        this.add(mob);
      }
    }
View Full Code Here

Examples of com.mojang.minecraft.mob.Zombie

                        }
                     }

                     Object var21 = null;
                     if(var6 == 0) {
                        var21 = new Zombie(this.level, var15, var16, var17);
                     }

                     if(var6 == 1) {
                        var21 = new Skeleton(this.level, var15, var16, var17);
                     }
View Full Code Here

Examples of org.bukkit.entity.Zombie

   * @param e
   *            Entity to make into baby
   */
  public static void makeBaby(final LivingEntity e) {
    if (e instanceof Zombie) {
      Zombie z = (Zombie) e;
      if (!z.isBaby()) {
        z.setBaby(true);
      }
    } else if (e instanceof Villager) {
      if (((Villager) e).isAdult()) {
        ((Villager) e).setBaby();
      }
View Full Code Here

Examples of org.bukkit.entity.Zombie

            // This is kind of messy, and can be improved upon.
            // TODO: Improve upon.
            else if (infected.getBukkitEntity() instanceof Villager) {
                Villager villager = (Villager) infected.getBukkitEntity();
                // Make a new entity
                Zombie infect = (Zombie) villager.getLocation().getWorld().spawnEntity(infected.getLocation(), EntityType.ZOMBIE);
                infect.setVillager(true);
                // Set health
                infect.setHealth(villager.getHealth());
                // Set equipment
                infect.getEquipment().setArmorContents(villager.getEquipment().getArmorContents());
                // Remove the Villager
                villager.remove();
                // Set the dEntity to the new entity
                infected.setEntity(infect);
            }
View Full Code Here

Examples of org.menacheri.zombie.domain.Zombie

    return defender;
  }
 
  public @Bean Zombie zombie()
  {
    Zombie zombie = new Zombie();
    zombie.setWorld(world());
    return zombie;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.