added toString to MagicInteger

master
melvin 2013-05-20 12:02:17 +08:00
parent 7b3b4c9bbb
commit acf2654031
1 changed files with 8 additions and 1 deletions

View File

@ -57,14 +57,21 @@ public class MagicEvent implements MagicCopyable {
public MagicInteger(final int v) {
value = v;
}
@Override
public MagicCopyable copy(final MagicCopyMap copyMap) {
return this;
}
@Override
public int hashCode() {
return value;
}
@Override
public String toString() {
return Integer.toString(value);
}
}
public static final MagicEvent NONE = new MagicEvent(NO_SOURCE, MagicPlayer.NONE, NO_REF, NO_ACTION, "") {