diff -r ed1d52c5aa94 -r 763d3961400b project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/RoomWithId.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/RoomWithId.java Sat Aug 18 00:47:51 2012 +0200 @@ -0,0 +1,24 @@ +package org.hedgewars.hedgeroid.Datastructures; + +import java.util.Comparator; + +public final class RoomWithId { + public final Room room; + public final long id; + + public RoomWithId(Room room, long id) { + this.room = room; + this.id = id; + } + + @Override + public String toString() { + return "RoomWithId [room=" + room + ", id=" + id + "]"; + } + + public static final Comparator NEWEST_FIRST_ORDER = new Comparator() { + public int compare(RoomWithId lhs, RoomWithId rhs) { + return rhs.idlhs.id ? 1 : 0; + } + }; +} \ No newline at end of file