Change Mage version to 0.7.4-beta

This commit is contained in:
magenoxx 2011-06-09 20:20:28 +04:00
parent 9764a4e1b2
commit 18a416d184
4 changed files with 9 additions and 6 deletions

View file

@ -108,7 +108,7 @@ public class MageFrame extends javax.swing.JFrame implements Client {
private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class);
private JLabel title;
private Rectangle titleRectangle;
private final static MageVersion version = new MageVersion(0, 7, 3);
private final static MageVersion version = new MageVersion(0, 7, 4, "beta");
private UUID clientId;
private static MagePane activeFrame;

View file

@ -40,10 +40,13 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
private int minor;
private int patch;
public MageVersion(int major, int minor, int patch) {
private String info = "";
public MageVersion(int major, int minor, int patch, String info) {
this.major = major;
this.minor = minor;
this.patch = patch;
this.info = info;
}
public int getMajor() {
@ -60,7 +63,7 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
@Override
public String toString() {
return major + "." + minor + "." + patch;
return major + "." + minor + "." + patch + info;
}
@Override
@ -71,7 +74,7 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
return minor - o.minor;
if (patch != o.patch)
return patch - o.patch;
return 0;
return info.compareTo(o.info);
}
}

View file

@ -53,7 +53,7 @@ public class ConsoleFrame extends javax.swing.JFrame {
private static Session session;
private ConnectDialog connectDialog;
private static Preferences prefs = Preferences.userNodeForPackage(ConsoleFrame.class);
private final static MageVersion version = new MageVersion(0, 7, 3);
private final static MageVersion version = new MageVersion(0, 7, 4, "beta");
/**
* @return the session

View file

@ -61,7 +61,7 @@ public class Main {
private final static String testModeArg = "-testMode=";
private final static String adminPasswordArg = "-adminPassword=";
private final static String pluginFolder = "plugins";
private static MageVersion version = new MageVersion(0, 7, 3);
private static MageVersion version = new MageVersion(0, 7, 4, "beta");
public static PluginClassLoader classLoader = new PluginClassLoader();
public static ServerImpl server;