tesuji.games.general
Class Point
java.lang.Object
|
+--tesuji.games.general.Point
- All Implemented Interfaces:
- FlyWeight
- public class Point
- extends java.lang.Object
- implements FlyWeight
Actually the same as java.awt.Point except that it implements
the FlyWeight interface for fast object allocation
Creation date: (11-May-01 11:56:07 AM)
Product: Tesuji Software Go Library.
Copyright (c) 2001 Tesuji Software B.V.
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above
copyright notice(s) and this permission notice appear in all copies of
the Software and that both the above copyright notice(s) and this
permission notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of a Tesuji Software
shall not be used in advertising or otherwise to promote the sale, use
or other dealings in this Software without prior written authorization
of Tesuji Software.
Field Summary |
int |
x
|
int |
y
|
Constructor Summary |
Point()
Point constructor comment. |
Point(int x,
int y)
|
Point(int x,
int y,
java.util.Stack stack)
|
Point(java.util.Stack stack)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public int x
y
public int y
Point
public Point()
- Point constructor comment.
Point
public Point(int x,
int y)
Point
public Point(int x,
int y,
java.util.Stack stack)
Point
public Point(java.util.Stack stack)
getX
public int getX()
getY
public int getY()
recycle
public void recycle()
- Specified by:
recycle
in interface FlyWeight
setX
public void setX(int newX)
setY
public void setY(int newY)