tesuji.games.general
Interface Cursor

All Superinterfaces:
FlyWeight
All Known Implementing Classes:
tesuji.games.go.GoCursor

public interface Cursor
extends FlyWeight

Simple interface to define a 'cursor'. A cursor means a way of moving around the board. The constructor of the class that implements the Cursor interface will typically take a starting position as a parameter. When the continues() method returns false, the Cursor ends. Each consecutive call to the next method will return the next coordinate of the cursors path.

Note: This interface assumes the coordinates are expressed in a single number.

Creation date: (21-May-01 3:22:52 PM)

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.


Method Summary
 boolean continues()
           
 int next()
           
 void start()
           
 
Methods inherited from interface tesuji.games.general.FlyWeight
recycle
 

Method Detail

start

public void start()

continues

public boolean continues()

next

public int next()