Package games.stendhal.common.constants

Examples of games.stendhal.common.constants.SoundLayer


    if (object.has("volume")) {
      volume = Numeric.intToFloat(object.getInt("volume"), 100.0f);
    }
    if (object.has("layer")) {
      final int idx = object.getInt("layer");
      SoundLayer layer;

      if (idx < SoundLayer.values().length) {
        layer = SoundLayer.values()[idx];
        group = ClientSingletonRepository.getSound().getGroup(layer.groupName);
      } else {
View Full Code Here


  /**
   * executes the event
   */
  @Override
  public void execute() {
    SoundLayer layer = SoundLayer.AMBIENT_SOUND;
    int idx = event.getInt("layer");
    if (idx < SoundLayer.values().length) {
      layer = SoundLayer.values()[idx];
    }
    float volume = 1.0f;
View Full Code Here

TOP

Related Classes of games.stendhal.common.constants.SoundLayer

Copyright © 2018 www.massapicom. 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.