All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.czyzby.autumn.mvc.component.sfx.dto.CurrentSoundStateAction Maven / Gradle / Ivy

Go to download

MVC framework based on LibGDX using Autumn for components management and LML as view templates.

There is a newer version: 1.9.1.9.6
Show newest version
package com.github.czyzby.autumn.mvc.component.sfx.dto;

import com.github.czyzby.autumn.mvc.component.sfx.MusicService;
import com.github.czyzby.lml.parser.action.ActorConsumer;

/** Returns current sound state on invocation.
 *
 * @author MJ */
public class CurrentSoundStateAction implements ActorConsumer {
    private final MusicService musicService;

    public CurrentSoundStateAction(final MusicService musicService) {
        this.musicService = musicService;
    }

    @Override
    public Boolean consume(final Object actor) {
        return musicService.isSoundEnabled();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy