Uses of Interface
jfreerails.world.top.World

Packages that use World
experimental Provides a space to put classes that try out concepts and ideas but are not part of the game - classes in other jfreerails packages should not import classes from this package. 
jfreerails.controller Provides classes that may be used by the client or the server to operate on the game world, for example, building trains and stations. 
jfreerails.launcher Provides the classes the make up the launcher. 
jfreerails.move Provides classes that encapsulate changes to the game world. 
jfreerails.network Provides classes for sending moves and commands between the client and server. 
jfreerails.server Provides classes that will be used by the server but not the client. 
jfreerails.server.common Provides classes and interfaces that might be used by the jfreerails.server package as well as some of the other jfreerails.server.* packages. 
jfreerails.server.parser Provides classes that parse the xml that defines the cargo types, terrain types etc. 
jfreerails.world.top Provides a space to put classes that depend on classes from several other jfreerails.world packages. 
 

Uses of World in experimental
 

Fields in experimental declared as World
private  World DialogueBoxTester.w
           
private  World SimpleMoveReciever.w
           
private  World TrainMotionExpt.world
           
 

Constructors in experimental with parameters of type World
SimpleMoveReciever(World w)
           
 

Uses of World in jfreerails.controller
 

Fields in jfreerails.controller declared as World
private  World SimpleMoveExecutor.w
           
 

Constructors in jfreerails.controller with parameters of type World
SimpleMoveExecutor(World world, int playerID)
           
 

Uses of World in jfreerails.launcher
 

Methods in jfreerails.launcher with parameters of type World
protected  void GUIClient.newWorld(World w)
           
 

Uses of World in jfreerails.move
 

Fields in jfreerails.move declared as World
protected  World AbstractMoveTestCase.world
           
 

Methods in jfreerails.move that return World
(package private)  World AbstractMoveTestCase.getWorld()
           
 

Methods in jfreerails.move with parameters of type World
protected static MoveStatus ChangeTrackPieceMove.check4overlap(World w, ImPoint location, TrackPiece trackPiece)
          This method may be called under 3 possible conditions: (1) when a station is getting built, (2) when a station is getting upgraded, (3) when a staton is getting removed.
protected  MoveStatus ChangeTrackPieceCompositeMove.compositeTest(World world, FreerailsPrincipal p)
           
(package private)  MoveStatus CompositeMove.compositeTest(World w, FreerailsPrincipal p)
          Subclasses may override this method to perform tests which pass or fail depending on the combination of moves making up this composite move.
private  void WorldDiffMove.doMove(World world, boolean undo)
           
 MoveStatus AddActiveEntityMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToListMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToSharedListMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddPlayerMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddTransactionMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeGameSpeedMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeItemInListMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeProductionAtEngineShopMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTileMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTrackPieceMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus CompositeMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus Move.doMove(World w, FreerailsPrincipal p)
          Executes this move on the specifed world object.
 MoveStatus NextActivityMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus RemoveItemFromListMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus TimeTickMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus UndoMove.doMove(World w, FreerailsPrincipal p)
           
 MoveStatus WorldDiffMove.doMove(World world, FreerailsPrincipal p)
           
private  boolean AddPlayerMove.isAlreadyASimilarPlayer(World w)
           
protected  MoveStatus ChangeItemInListMove.move(FreerailsSerializable to, FreerailsSerializable from, World w)
           
private  void ChangeTrackPieceMove.move(World w, TrackPiece oldTrackPiece, TrackPiece newTrackPiece)
           
private  boolean ChangeTrackPieceMove.noDiagonalTrackConflicts(ImPoint point, int trackTemplate, World w)
           
private  void CompositeMove.redoMoves(World w, int number, FreerailsPrincipal p)
           
(package private)  void AbstractMoveTestCase.setWorld(World world)
           
 MoveStatus AddActiveEntityMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToListMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToSharedListMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddPlayerMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddTransactionMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeGameSpeedMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeItemInListMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeProductionAtEngineShopMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTileMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTrackPieceMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus CompositeMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus Move.tryDoMove(World w, FreerailsPrincipal p)
          Tests whether this Move can be executed on the specifed world object, this method should leave the world object unchanged.
 MoveStatus NextActivityMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus RemoveItemFromListMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus TimeTickMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus UndoMove.tryDoMove(World w, FreerailsPrincipal p)
           
 MoveStatus WorldDiffMove.tryDoMove(World world, FreerailsPrincipal p)
           
private  MoveStatus WorldDiffMove.tryMapChanges(World world, boolean undo)
           
protected  MoveStatus ChangeItemInListMove.tryMove(FreerailsSerializable to, FreerailsSerializable from, World w)
           
private  MoveStatus ChangeProductionAtEngineShopMove.tryMove(World w, ImList<PlannedTrain> stateA)
           
private  MoveStatus ChangeTrackPieceMove.tryMove(World w, TrackPiece oldTrackPiece, TrackPiece newTrackPiece)
           
 MoveStatus AddActiveEntityMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToListMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToSharedListMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddPlayerMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddTransactionMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeGameSpeedMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeItemInListMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeProductionAtEngineShopMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTileMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTrackPieceMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus CompositeMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus Move.tryUndoMove(World w, FreerailsPrincipal p)
          Tests whether this Move can be undone on the specifed world object, this method should leave the world object unchanged.
 MoveStatus NextActivityMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus RemoveItemFromListMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus TimeTickMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus UndoMove.tryUndoMove(World w, FreerailsPrincipal p)
           
 MoveStatus WorldDiffMove.tryUndoMove(World world, FreerailsPrincipal p)
           
 MoveStatus AddActiveEntityMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToListMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddItemToSharedListMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddPlayerMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus AddTransactionMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeGameSpeedMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeItemInListMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeProductionAtEngineShopMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTileMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus ChangeTrackPieceMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus CompositeMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus Move.undoMove(World w, FreerailsPrincipal p)
          If doMove has just been executed on the specified world object, calling this method changes the state of the world object back to how it was before doMove was called.
 MoveStatus NextActivityMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus RemoveItemFromListMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus TimeTickMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus UndoMove.undoMove(World w, FreerailsPrincipal p)
           
 MoveStatus WorldDiffMove.undoMove(World world, FreerailsPrincipal p)
           
private  void CompositeMove.undoMoves(World w, int number, FreerailsPrincipal p)
           
 

Uses of World in jfreerails.network
 

Fields in jfreerails.network declared as World
private  World MovePrecommitter.w
           
private  World SimpleServerGameModel.w
           
private  World FreerailsClient.world
           
private  World SetWorldMessage2Client.world
           
 

Methods in jfreerails.network that return World
(package private)  World FreerailsGameServer.getCopyOfWorld()
           
 World FreerailsClient.getWorld()
           
private  World FreerailsGameServer.getWorld()
           
 World ServerGameModel.getWorld()
           
 World SimpleServerGameModel.getWorld()
           
 

Methods in jfreerails.network with parameters of type World
protected  void FreerailsClient.newWorld(World w)
          Subclasses should override this method if they need to respond the the world being changed.
 void ServerGameModel.setWorld(World w, java.lang.String[] passwords)
           
 void SimpleServerGameModel.setWorld(World w, java.lang.String[] passwords)
           
 

Constructors in jfreerails.network with parameters of type World
MovePrecommitter(World w)
           
SetWorldMessage2Client(int id, World world)
          Note, makes a defensive copy of the world object passed to it.
 

Uses of World in jfreerails.server
 

Fields in jfreerails.server declared as World
private  World CalcSupplyAtStations.w
           
(package private)  World CityTilePositioner.w
           
private static World MapFixtureFactory2.w
           
private  World CitySAXParser.world
           
 World ServerGameModelImpl.world
           
 

Methods in jfreerails.server that return World
static World OldWorldImpl.createWorldFromMapFile(java.lang.String mapName, FreerailsProgressMonitor pm)
          Note, the map name is converted to lower case and any spaces are replaced with underscores.
private static World MapFixtureFactory2.generateWorld()
           
static World MapFixtureFactory2.getCopy()
          Returns a world object with a map of size 50*50, 4 players, and track, terrain and cargo types as specifed in the xml files used by the actual game.
 World ServerGameModelImpl.getWorld()
           
 

Methods in jfreerails.server with parameters of type World
 void TileSetFactoryImpl.addTerrainTileTypesList(World w)
           
private static AddTransactionMove InterestChargeMoveGenerator.generateMove(World w, FreerailsPrincipal principal)
           
private static AddTransactionMove TrainMaintenanceMoveGenerator.generateMove(World w, FreerailsPrincipal principal)
           
static AddTransactionMove TrackMaintenanceMoveGenerator.generateMove(World w, FreerailsPrincipal principal, Transaction.Category category)
           
static void InputCityNames.readCityNames(World w, java.net.URL filename)
           
 void ServerGameModelImpl.setWorld(World w, java.lang.String[] passwords)
           
 void InterestChargeMoveGenerator.update(World w)
           
 void TrackMaintenanceMoveGenerator.update(World w)
           
 void TrainMaintenanceMoveGenerator.update(World w)
           
 void CargoAtStationsGenerator.update(World w, MoveReceiver moveReceiver)
          Call this method once a month.
(package private)  void CityEconomicModel.write2map(World w)
           
private  void CityEconomicModel.writeTile(World w, CityEconomicModel.Tile tile)
           
 

Constructors in jfreerails.server with parameters of type World
CalcSupplyAtStations(World world, MoveReceiver mr)
          Constructor, currently called from GUIComponentFactory.
CitySAXParser(World w)
           
CityTilePositioner(World w)
           
ServerGameModelImpl(World w, java.util.Vector<ServerAutomaton> serverAutomata)
           
 

Uses of World in jfreerails.server.common
 

Methods in jfreerails.server.common with parameters of type World
 void TileSetFactory.addTerrainTileTypesList(World w)
           
 

Uses of World in jfreerails.server.parser
 

Fields in jfreerails.server.parser declared as World
private  World CargoAndTerrainHandlerImpl.world
           
 

Methods in jfreerails.server.parser with parameters of type World
 void Track_TilesHandlerImpl.addTrackRules(World w)
           
 

Constructors in jfreerails.server.parser with parameters of type World
CargoAndTerrainHandlerImpl(World w)
           
 

Uses of World in jfreerails.world.top
 

Classes in jfreerails.world.top that implement World
 class WorldDiffs
          An implemenation of World that only stores differences relative to an underlying world object.
 class WorldImpl
          An implementation of World that uses standard java.util collections internally.
 

Methods in jfreerails.world.top that return World
 World World.defensiveCopy()
          Returns a copy of this world object - making changes to this copy will not change this object.
 World WorldImpl.defensiveCopy()
           
static World MapFixtureFactory.getWorld(int w, int h)
          Returns a world object with a map of the specifed size with the terrain and cargo types setup.
 

Methods in jfreerails.world.top with parameters of type World
 void WagonAndEngineTypesFactory.addTypesToWorld(World w)
           
static void MapFixtureFactory.generateCargoTypesList(World world)
          Adds hard coded cargo types.
private static void MapFixtureFactory.generateTerrainTypesList(World world)
          Adds hard coded terrain types.
static void MapFixtureFactory.generateTrackRuleList(World world)