Skip to content
Snippets Groups Projects
Commit 666f2ce4 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Refactor of game classes names

parent ebeb065b
Branches
Tags
No related merge requests found
......@@ -4,12 +4,12 @@ import cz.nic.tablexia.Tablexia.ChangeScreenEvent;
import cz.nic.tablexia.TablexiaApplication.ScreenTransaction;
import cz.nic.tablexia.bus.ApplicationBus;
import cz.nic.tablexia.bus.ApplicationBus.ApplicationEvent;
import cz.nic.tablexia.game.games.in_the_darkness.InTheDarknessScreen;
import cz.nic.tablexia.game.games.in_the_darkness.InTheDarknessGame;
import cz.nic.tablexia.game.games.kidnapping.KidnappingGame;
import cz.nic.tablexia.game.games.night_watch.NightWatchGame;
import cz.nic.tablexia.game.games.pursuit.PursuitScreen;
import cz.nic.tablexia.game.games.pursuit.PursuitGame;
import cz.nic.tablexia.game.games.robbery.RobberyGame;
import cz.nic.tablexia.game.games.shooting_range.ShootingRangeScreen;
import cz.nic.tablexia.game.games.shooting_range.ShootingRangeGame;
import cz.nic.tablexia.loader.application.ApplicationTextManager;
import cz.nic.tablexia.menu.IMenuItem;
......@@ -17,11 +17,11 @@ import cz.nic.tablexia.menu.IMenuItem;
public enum GameDefinition implements ApplicationEvent, IMenuItem {
ROBBERY ("game_robbery_title", RobberyGame.class, true),
PURSUIT ("game_pursuit_title", PursuitScreen.class, true),
PURSUIT ("game_pursuit_title", PursuitGame.class, true),
KIDNAPPING ("game_kidnapping_title", KidnappingGame.class, true),
NIGHT_WATCH ("game_night_watch_title", NightWatchGame.class, true),
SHOOTING_RANGE ("game_shooting_range_title", ShootingRangeScreen.class, true),
IN_THE_DARKNESS ("game_in_the_darkness_title", InTheDarknessScreen.class, true);
SHOOTING_RANGE ("game_shooting_range_title", ShootingRangeGame.class, true),
IN_THE_DARKNESS ("game_in_the_darkness_title", InTheDarknessGame.class, true);
private String menuTextKey;
......@@ -32,7 +32,7 @@ public enum GameDefinition implements ApplicationEvent, IMenuItem {
return new GameDefinition[]{ROBBERY, PURSUIT, KIDNAPPING, NIGHT_WATCH, SHOOTING_RANGE, IN_THE_DARKNESS};
}
private GameDefinition(String nameResource, Class<? extends AbstractTablexiaGame<?>> screenClass, boolean isCloseMenu) {
GameDefinition(String nameResource, Class<? extends AbstractTablexiaGame<?>> screenClass, boolean isCloseMenu) {
this.menuTextKey = nameResource;
this.screenClass = screenClass;
this.isCloseMenu = isCloseMenu;
......
package cz.nic.tablexia.game.games.in_the_darkness;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.games.robbery.rules.GameRule;
/**
* Created by Václav Tarantík on 6.3.15.
*/
public class InTheDarknessScreen extends AbstractTablexiaGame<GameRule> {
public class InTheDarknessGame extends AbstractTablexiaGame<Void> {
}
package cz.nic.tablexia.game.games.pursuit;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.games.robbery.rules.GameRule;
/**
* Created by Václav Tarantík on 6.3.15.
*/
public class PursuitScreen extends AbstractTablexiaGame<GameRule> {
public class PursuitGame extends AbstractTablexiaGame<Void> {
}
package cz.nic.tablexia.game.games.shooting_range;
import cz.nic.tablexia.game.AbstractTablexiaGame;
import cz.nic.tablexia.game.games.robbery.rules.GameRule;
/**
* Created by Václav Tarantík on 6.3.15.
*/
public class ShootingRangeScreen extends AbstractTablexiaGame<GameRule> {
public class ShootingRangeGame extends AbstractTablexiaGame<Void> {
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment