talx x1.0.5

talx.games
Interface GameService

All Superinterfaces:
TALFeature
All Known Implementing Classes:
HelpDesk, Survey, Tech

public interface GameService
extends TALFeature

Interface for game service providers. A game service provider is invoked when a new game instance needs to be constructed. Implementations classes are loaded from the feature list at startup. Each service class must register with the GameManager in its constructor. Also, in order for this class to be invoked, the system must contain a StartGame linked to the specific type of game. If two game services that share the same game type appear in the feature list the system will invoke the first one listed.

See Also:
Game Service Provider Interface Documentation

Method Summary
 java.lang.String getGameType()
          Returns a String representing the type of Game.
 Game newInstance(Player p)
          Returns a new game instance.
 
Methods inherited from interface talx.feature.TALFeature
release
 

Method Detail

getGameType

public java.lang.String getGameType()
Returns a String representing the type of Game. Two services that return identical Strings here must also have compatible game states, although they can differ in look and feel details.


newInstance

public Game newInstance(Player p)
Returns a new game instance.


talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.