/* * Copyright 2013 MovingBlocks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.terasology.logic.characters; import com.google.common.collect.Lists; import org.terasology.audio.StaticSound; import org.terasology.entitySystem.Component; import java.util.List; /** */ public final class CharacterSoundComponent implements Component { public List<StaticSound> footstepSounds = Lists.newArrayList(); public List<StaticSound> damageSounds = Lists.newArrayList(); public List<StaticSound> landingSounds = Lists.newArrayList(); public List<StaticSound> jumpSounds = Lists.newArrayList(); public List<StaticSound> deathSounds = Lists.newArrayList(); public List<StaticSound> respawnSounds = Lists.newArrayList(); // TODO: put these on components on the liquid block prefabs instead (for per-liquid swim sounds) public List<StaticSound> swimSounds = Lists.newArrayList(); public List<StaticSound> enterWaterSounds = Lists.newArrayList(); public List<StaticSound> leaveWaterSounds = Lists.newArrayList(); public float footstepVolume = 1.0f; public float damageVolume = 1.0f; public float jumpVolume = 1.0f; public float landingVolume = 1.0f; public float deathVolume = 1.0f; public float respawnVolume = 1.0f; public float swimmingVolume = 1.0f; public float diveVolume = 1.0f; public long lastSoundTime; }