Package games.stendhal.server.maps.kalavan.castle

Source Code of games.stendhal.server.maps.kalavan.castle.SadScientsBrother

/* $Id: SadScientsBrother.java,v 1.6 2010/09/19 02:30:42 nhnb Exp $ */
/***************************************************************************
*                   (C) Copyright 2003-2010 - Stendhal                    *
***************************************************************************
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************/
package games.stendhal.server.maps.kalavan.castle;

import java.util.Map;

import games.stendhal.server.core.config.ZoneConfigurator;
import games.stendhal.server.core.engine.SingletonRepository;
import games.stendhal.server.core.engine.StendhalRPZone;
import games.stendhal.server.core.rule.EntityManager;
import games.stendhal.server.entity.creature.Creature;
import games.stendhal.server.entity.creature.ItemGuardCreature;
import games.stendhal.server.entity.mapstuff.spawner.CreatureRespawnPoint;

public class SadScientsBrother implements ZoneConfigurator {

  public void configureZone(StendhalRPZone zone,
      Map<String, String> attributes) {
    final EntityManager manager = SingletonRepository.getEntityManager();
    final Creature creature = new ItemGuardCreature(manager.getCreature("imperial scientist"), "goblet", "sad_scientist", "kill_scientist", 0);
    creature.setName("Sergej Elos");
    final CreatureRespawnPoint point = new CreatureRespawnPoint(zone, 43, 85, creature, 1);
    zone.add(point);
  }

}
TOP

Related Classes of games.stendhal.server.maps.kalavan.castle.SadScientsBrother

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.