comparison game/Piece.java @ 43:9664bbb9d613

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Feb 2011 06:01:14 +0200
parents 951a4d669af0
children 79185dababf2
comparison
equal deleted inserted replaced
42:951a4d669af0 43:9664bbb9d613
98 98
99 public int getAntiRotatedPoint(int in) 99 public int getAntiRotatedPoint(int in)
100 { 100 {
101 int point = (in + (currRotation * 2)) % 8; 101 int point = (in + (currRotation * 2)) % 8;
102 if (point < 0) point = 8 + point; 102 if (point < 0) point = 8 + point;
103 System.out.print("getAntiRotatedPoint("+ in +"): rot="+currRotation+", point="+point+"\n");
104 return point; 103 return point;
105 } 104 }
106 105
107 public int getMatchingPoint(int point) 106 public int getMatchingPoint(int point)
108 { 107 {