Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.game
Class RPActionFactory  view RPActionFactory download RPActionFactory.java

java.lang.Object
  extended bymarauroa.game.RPActionFactory

public class RPActionFactory
extends java.lang.Object

This class is used to creating a RPAction object from a stream or to serialize a RPAction object to a stream.


Field Summary
private static java.util.Map factoryArray
           
private static RPActionFactory rpActionFactory
           
 
Constructor Summary
private RPActionFactory()
           
 
Method Summary
 void addRPAction(marauroa.net.OutputSerializer os, RPAction rp_action)
          adds the given RPAction into serializer
static RPActionFactory getFactory()
          This method returns an instance of RPObjectFactory
 RPAction getRPAction(marauroa.net.InputSerializer is)
          Returns a object of the right class from a stream of serialized data.
 void register(int index, java.lang.Class rpActionClass)
          registers a RPAction class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factoryArray

private static java.util.Map factoryArray

rpActionFactory

private static RPActionFactory rpActionFactory
Constructor Detail

RPActionFactory

private RPActionFactory()
Method Detail

getFactory

public static RPActionFactory getFactory()
This method returns an instance of RPObjectFactory


register

public void register(int index,
                     java.lang.Class rpActionClass)
registers a RPAction class


getRPAction

public RPAction getRPAction(marauroa.net.InputSerializer is)
                     throws java.io.IOException
Returns a object of the right class from a stream of serialized data.


addRPAction

public void addRPAction(marauroa.net.OutputSerializer os,
                        RPAction rp_action)
                 throws java.io.IOException
adds the given RPAction into serializer