net.jetrix.filter
Class PuzzleFilter

java.lang.Object
  extended by net.jetrix.filter.MessageFilter
      extended by net.jetrix.filter.GenericFilter
          extended by net.jetrix.filter.PuzzleFilter

public class PuzzleFilter
extends GenericFilter

Set the game field and settings when the game starts. A new puzzle is displayed every time. The sequence of puzzles is generated by a PuzzleGenerator, by default the DownstackPuzzleGenerator is used. An alternative generator can be used by specifying the generator parameter in the filter configuration. The filter configuration is passed to the generator for its initialization.

Since:
0.3
Version:
$Revision: 798 $, $Date: 2009-02-18 16:24:28 +0100 (Wed, 18 Feb 2009) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.filter.GenericFilter
log
 
Fields inherited from class net.jetrix.filter.MessageFilter
config
 
Constructor Summary
PuzzleFilter()
           
 
Method Summary
 void init()
          Called by the channel to indicate to a filter that the filter is being placed into service.
 void onMessage(FieldMessage m, List<Message> out)
           
 void onMessage(NewGameMessage m, List<Message> out)
           
 
Methods inherited from class net.jetrix.filter.GenericFilter
onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onSpecial, process
 
Methods inherited from class net.jetrix.filter.MessageFilter
destroy, getAuthor, getChannel, getConfig, getDescription, getName, getProperty, getVersion, isShared, setChannel, setConfig, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PuzzleFilter

public PuzzleFilter()
Method Detail

init

public void init()
Description copied from class: MessageFilter
Called by the channel to indicate to a filter that the filter is being placed into service.

Overrides:
init in class MessageFilter

onMessage

public void onMessage(NewGameMessage m,
                      List<Message> out)
Overrides:
onMessage in class GenericFilter

onMessage

public void onMessage(FieldMessage m,
                      List<Message> out)
Overrides:
onMessage in class GenericFilter


Copyright © 2001-2010. All Rights Reserved.