mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
refactor: removed unused and outdated code
This commit is contained in:
parent
97be82d3a4
commit
915e1308eb
10 changed files with 0 additions and 243 deletions
|
|
@ -1,25 +0,0 @@
|
|||
package mage.server.challenge;
|
||||
|
||||
import mage.constants.Zone;
|
||||
import mage.game.match.Match;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* C U R R E N T L Y U N U S E D
|
||||
*
|
||||
* Loads challenges from scenarios.
|
||||
* Configure games by initializing starting game board.
|
||||
*/
|
||||
public enum ChallengeManager {
|
||||
|
||||
instance;
|
||||
|
||||
public void prepareChallenge(UUID playerId, Match match) {
|
||||
Map<Zone, String> commands = new HashMap<>();
|
||||
commands.put(Zone.OUTSIDE, "life:3");
|
||||
match.getGame().cheat(playerId, commands);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
package mage.server.exceptions;
|
||||
|
||||
/**
|
||||
* Created by igoudt on 14-1-2017.
|
||||
*/
|
||||
public class UserNotFoundException extends Exception {
|
||||
}
|
||||
|
|
@ -3,7 +3,6 @@ package mage.server.managers;
|
|||
import mage.game.Game;
|
||||
import mage.server.ChatSession;
|
||||
import mage.server.DisconnectReason;
|
||||
import mage.server.exceptions.UserNotFoundException;
|
||||
import mage.view.ChatMessage;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
package mage.server.services;
|
||||
|
||||
/**
|
||||
* Responsible for gathering logs and storing them in DB.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface LogService {
|
||||
|
||||
/**
|
||||
* Logs any information
|
||||
*
|
||||
* @param key Log key. Should be the same for the same types of logs.
|
||||
* @param args Any parameters in string representation.
|
||||
*/
|
||||
void log(String key, String... args);
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
package mage.server.services;
|
||||
|
||||
/**
|
||||
* Common interface for all services.
|
||||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public interface MageService {
|
||||
/**
|
||||
* Restores data on startup.
|
||||
*/
|
||||
void initService();
|
||||
|
||||
/**
|
||||
* Dumps data to DB.
|
||||
*/
|
||||
void saveData();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue