games.strategy.engine.framework
Class GameDataUtils

java.lang.Object
  extended by games.strategy.engine.framework.GameDataUtils

public class GameDataUtils
extends java.lang.Object


Constructor Summary
GameDataUtils()
           
 
Method Summary
static GameData cloneGameData(GameData data)
           
static GameData cloneGameData(GameData data, boolean copyDelegates)
          Create a deep copy of GameData.
static java.lang.Object translateIntoOtherGameData(java.lang.Object object, GameData translateInto)
          Translate units,territories and other game data objects from one game data into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameDataUtils

public GameDataUtils()
Method Detail

cloneGameData

public static GameData cloneGameData(GameData data)

cloneGameData

public static GameData cloneGameData(GameData data,
                                     boolean copyDelegates)
Create a deep copy of GameData. You should have the game datas read or write lock before calling this method


translateIntoOtherGameData

public static java.lang.Object translateIntoOtherGameData(java.lang.Object object,
                                                          GameData translateInto)
Translate units,territories and other game data objects from one game data into another.