games.strategy.engine.random
Class RemoteRandom

java.lang.Object
  extended by games.strategy.engine.random.RemoteRandom
All Implemented Interfaces:
IRemote, IRemoteRandom

public class RemoteRandom
extends java.lang.Object
implements IRemoteRandom

Author:
Sean Bridges

Constructor Summary
RemoteRandom(IGame game)
           
 
Method Summary
 int[] generate(int max, int count, java.lang.String annotation, VaultID remoteVaultID)
          Generate a random number, and lock it in the vault.
static java.util.List<VerifiedRandomNumbers> getVerifiedRandomNumbers()
           
 void verifyNumbers()
          unlock the random number last generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRandom

public RemoteRandom(IGame game)
Parameters:
id -
Method Detail

getVerifiedRandomNumbers

public static java.util.List<VerifiedRandomNumbers> getVerifiedRandomNumbers()

generate

public int[] generate(int max,
                      int count,
                      java.lang.String annotation,
                      VaultID remoteVaultID)
Description copied from interface: IRemoteRandom
Generate a random number, and lock it in the vault.

Specified by:
generate in interface IRemoteRandom
remoteVaultID - - the vaultID where the server has stored his numbers
Returns:
the vault id for which we have locked the data

verifyNumbers

public void verifyNumbers()
Description copied from interface: IRemoteRandom
unlock the random number last generated.

Specified by:
verifyNumbers in interface IRemoteRandom