ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/installer2/src/net/oni2/aeinstaller/backend/mods/Mod.java
Revision: 598
Committed: Thu Jan 3 18:20:51 2013 UTC (12 years, 10 months ago) by alloc
Content type: text/x-java
File size: 700 byte(s)
Log Message:

File Contents

# Content
1 package net.oni2.aeinstaller.backend.mods;
2
3 import java.io.File;
4
5 /**
6 * @author Christian Illy
7 */
8 public class Mod implements Comparable<Mod> {
9 private double aeVersion;
10 private int node;
11 private int packageNumber;
12
13 public double getAEVersion() {
14 return aeVersion;
15 }
16
17 public boolean hasSeparatePlatformDirs() {
18 return aeVersion >= 2;
19 }
20
21 public File getLocalPath() {
22 // TODO
23 return null;
24 }
25
26 public boolean newerAvailable() {
27 //TODO
28 return false;
29 }
30
31 public boolean localAvailable() {
32 //TODO
33 return false;
34 }
35
36 public int getPackageNumber() {
37 return packageNumber;
38 }
39
40 @Override
41 public int compareTo(Mod o) {
42 return getPackageNumber() - o.getPackageNumber();
43 }
44 }