talx x1.0.5

talx.games.tech
Class Tech

java.lang.Object
  extended bytalx.games.tech.Tech
All Implemented Interfaces:
GameService, TALFeature

public class Tech
extends java.lang.Object
implements GameService


Constructor Summary
Tech(GameManager gm, Settings settings, java.lang.String legends)
           
 
Method Summary
 java.lang.String getGameType()
          Returns a String representing the type of Game.
 Game newInstance(Player p)
          Returns a new game instance.
 void release()
          Releases all system resources held by this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tech

public Tech(GameManager gm,
            Settings settings,
            java.lang.String legends)
Parameters:
gm - the system's GameManager
legends - the text to appear on the components. This should have the form key=value pairs where the value is the legend string and the keys are:
Method Detail

newInstance

public Game newInstance(Player p)
Description copied from interface: GameService
Returns a new game instance.

Specified by:
newInstance in interface GameService

getGameType

public java.lang.String getGameType()
Description copied from interface: GameService
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.

Specified by:
getGameType in interface GameService
Returns:
"technical-assistance"

release

public void release()
Description copied from interface: TALFeature
Releases all system resources held by this object. The general contract of pluggable features is that once their release method is called, they should be elligible for garbage collection. The exceptions to this are references to this object held in the ActionDispatcher and in the Transport model. Both of those objects are cleared by the system. However, in all other cases, if this object subscribed to a listener interface, it must unsubscribe in this method. This method should block until all object clean-up has been accomplished. This includes closing all open files, etc. Once the object has returned from the release method, the system may go down without further warning.

Specified by:
release in interface TALFeature

talx x1.0.5

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