SinisterRobot / gtge

Automatically exported from code.google.com/p/gtge
0 stars 0 forks source link

Encapsulate the x and y variables of both the Background and CollisionRect classes. #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Background and CollisionRect classes both provide a weakly-accessible x and 
y variable that has at least a getter.  Encapsulate these so that they exist 
only in a single class.  For any new methods, add the final modifier to prevent 
overriding for getters and setters - existing getters and setters must stay 
as-is so that existing code can compile cleanly.

Original issue reported on code.google.com by MetroidF...@gmail.com on 7 Jun 2010 at 12:14

GoogleCodeExporter commented 8 years ago
Completed @106.

Original comment by MetroidF...@gmail.com on 7 Jun 2010 at 12:35

GoogleCodeExporter commented 8 years ago
At 108, added final modifiers to the new setters to prevent subclass overriding 
of simple setters.

Original comment by MetroidF...@gmail.com on 7 Jun 2010 at 1:10