Done Issue 16: Games played counter plugin.

This commit is contained in:
magenoxx 2010-11-14 17:01:12 +00:00
parent a2561515a3
commit b143a5a44d
14 changed files with 342 additions and 32 deletions

View file

@ -29,13 +29,19 @@
package mage.interfaces;
/**
*
* Root application exception.
*
* @author BetaSteward_at_googlemail.com
*/
public class MageException extends Exception {
private static final long serialVersionUID = 8340806803178193696L;
public MageException(String message) {
super(message);
}
public MageException(Throwable t) {
super(t);
}
}

View file

@ -0,0 +1,20 @@
package mage.interfaces;
/**
* Exception thrown by plugin on errors.
*
* @author nantuko
*
*/
public class PluginException extends MageException {
private static final long serialVersionUID = 5528005696138392272L;
public PluginException(String message) {
super(message);
}
public PluginException(Throwable t) {
super(t);
}
}

View file

@ -0,0 +1,15 @@
package mage.interfaces.plugin;
import mage.interfaces.PluginException;
import net.xeoh.plugins.base.Plugin;
/**
* Interface for counter plugins
*
* @version 0.1 14.112010
* @author nantuko
*/
public interface CounterPlugin extends Plugin {
void addGamePlayed() throws PluginException;
int getGamePlayed() throws PluginException;
}