Holger's
Java API

com.antelmann.game
Interface GameMove

All Superinterfaces:
Serializable
All Known Implementing Classes:
GameBoardMove, MoveTemplate

public interface GameMove
extends Serializable

GameMove provides the necessary methods that allow a GamePlay object to handle a game move properly. The only method defined is a method to retrieve the game role associated with the move, as every move will have to be played by a particular player. GameMove represents a move that can be applied to a GamePlay object. GameMove extends Serializable to ensure that a game and its moves can be used over e.g. an Internet connection or can be written to a file. It is advised to also implement a useful toString() method, so that the moves will be displayed properly.

Author:
Holger Antelmann
See Also:
GamePlay, MoveTemplate

Method Summary
 int getPlayer()
          returns the game player role that plays this move
 

Method Detail

getPlayer

int getPlayer()
returns the game player role that plays this move

See Also:
GamePlay.numberOfPlayers()


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads