Package games.stendhal.server.maps.ados.bar

Source Code of games.stendhal.server.maps.ados.bar.ItemsOnTable

/***************************************************************************
*                   (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.ados.bar;

import games.stendhal.server.core.config.ZoneConfigurator;
import games.stendhal.server.core.engine.StendhalRPZone;
import games.stendhal.server.entity.mapstuff.spawner.PassiveEntityRespawnPoint;

import java.util.Map;

/**
* Creates bottles in Ados bar
*/
public class ItemsOnTable implements ZoneConfigurator {
  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildBarArea(zone);
  }

  private void buildBarArea(final StendhalRPZone zone) {

    // grower for an empty slim bottle (1h)
    final PassiveEntityRespawnPoint bottleGrower1 = new PassiveEntityRespawnPoint("slim bottle", 12000);
    bottleGrower1.setPosition(5, 15);
    bottleGrower1.setDescription("This seems a likely spot where a bottle could be found.");
    zone.add(bottleGrower1);

    bottleGrower1.setToFullGrowth();

    // grower for an empty eared bottle (1h)
    final PassiveEntityRespawnPoint bottleGrower2 = new PassiveEntityRespawnPoint("eared bottle", 12000);
    bottleGrower2.setPosition(22, 4);
    bottleGrower2.setDescription("This seems a likely spot where a bottle could be found.");
    zone.add(bottleGrower2);

    bottleGrower2.setToFullGrowth();
  }

}
TOP

Related Classes of games.stendhal.server.maps.ados.bar.ItemsOnTable

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.