Mineplex2018-withcommit/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/GameMode.java

46 lines
697 B
Java
Raw Normal View History

package nautilus.game.arcade;
import nautilus.game.arcade.game.Game;
/**
2016-05-15 10:24:29 +02:00
* This Object represents a Gamemode used in the GameType constructor
*
* @author xXVevzZXx
*/
public class GameMode
{
private Class<? extends Game> _gameMode;
private String _name;
2016-05-15 10:24:29 +02:00
/**
*
* @param gameMode Game class that in most cases extends the host game class
* @param name Gamemode name
*/
public GameMode(Class<? extends Game> gameMode, String name)
{
_gameMode = gameMode;
_name = name;
}
2016-05-15 10:24:29 +02:00
/**
*
* @return Game class
*/
public Class<? extends Game> getGameClass()
{
return _gameMode;
}
2016-05-15 10:24:29 +02:00
/**
*
* @return Gamemode name
*/
public String getName()
{
return _name;
}
}