de.spieleck.game.numfield
Class NumfieldRule

java.lang.Object
  |
  +--de.spieleck.game.numfield.NumfieldRule
All Implemented Interfaces:
GameRule

public class NumfieldRule
extends java.lang.Object
implements GameRule

This interface represents a Rule of a game.


Method Summary
 GameRuleCustomizer getCustomizer()
          Return a bean allowing for customization of the rules of a game.
 java.lang.String getGameName()
          Give the game a name.
 GameState getInitialState(PlayerCollection players, GameRuleCustomizer customizer)
          Return an valid initial state for a game.
static NumfieldRule getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NumfieldRule getInstance()

getGameName

public java.lang.String getGameName()
Description copied from interface: GameRule
Give the game a name.
Specified by:
getGameName in interface GameRule

getCustomizer

public GameRuleCustomizer getCustomizer()
Description copied from interface: GameRule
Return a bean allowing for customization of the rules of a game.
Specified by:
getCustomizer in interface GameRule

getInitialState

public GameState getInitialState(PlayerCollection players,
                                 GameRuleCustomizer customizer)
                          throws NumfieldException
Description copied from interface: GameRule
Return an valid initial state for a game.
Specified by:
getInitialState in interface GameRule


gameframe project