org.openbase.jeoparnaire.jp.JPGameResources Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeoparnaire Show documentation
Show all versions of jeoparnaire Show documentation
An opensource network voting game based on the idea of jeopardy and who wants to be a millionaire.
package org.openbase.jeoparnaire.jp;
/*-
* #%L
* Jeoparnaire
* %%
* Copyright (C) 2011 - 2017 openbase.org
* %%
* 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 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* .
* #L%
*/
import java.io.File;
import org.openbase.jps.exception.JPNotAvailableException;
import org.openbase.jps.preset.AbstractJPDirectory;
import org.openbase.jps.tools.FileHandler;
/**
* @author Divine Threepwood
*/
public class JPGameResources extends AbstractJPDirectory {
public static final String[] COMMAND_IDENTIFIER = {"-r", "--resources"};
public JPGameResources() {
super(COMMAND_IDENTIFIER, FileHandler.ExistenceHandling.Must, FileHandler.AutoMode.Off);
}
@Override
protected File getPropertyDefaultValue() throws JPNotAvailableException {
return new File("JeoparnaireResources");
}
@Override
public String getDescription() {
return "Property can be used to redefine the directory where the game files are stored. Those should contains images and videos used within the game.";
}
}