Subversion Repository Public Repository

litesoft

Diff Revisions 537 vs 538 for /trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/multimodule/common/client/Places.java

Diff revisions: vs.
  @@ -3,15 +3,15 @@
3 3 public enum Places
4 4 {
5 5 Front, //
6 - Back, //
7 - Left, //
8 - Right, //
9 6 Top, //
10 - Bottom; //
7 + Right, //
8 + Left, //
9 + Bottom, //
10 + Back; //
11 11
12 12 public Places getOppositeFace()
13 13 {
14 - return values()[((ordinal() & 1) == 0) ? ordinal() + 1 : ordinal() - 1];
14 + return values()[6-ordinal()];
15 15 }
16 16
17 17 public static Places fromOrdinal( int pOrdinal )