mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Done Issue 16: Games played counter plugin.
This commit is contained in:
parent
a2561515a3
commit
b143a5a44d
14 changed files with 342 additions and 32 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
20
Mage.Common/src/mage/interfaces/PluginException.java
Normal file
20
Mage.Common/src/mage/interfaces/PluginException.java
Normal 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);
|
||||
}
|
||||
}
|
||||
15
Mage.Common/src/mage/interfaces/plugin/CounterPlugin.java
Normal file
15
Mage.Common/src/mage/interfaces/plugin/CounterPlugin.java
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue