private void setState(int trainIndex, FreerailsPrincipal p, int newState, GameTime now, TrainModel tm) {
private void setState(int trainIndex, FreerailsPrincipal p, int newState) { System.out.println("setting state of train " + trainIndex + " for " + p + " to state " + stateToString(newState) + " at " + world.get(ITEM.TIME, p)); TrainModel tm = (TrainModel) world.get(KEY.TRAINS, trainIndex, p);
    private void setState(int trainIndex, FreerailsPrincipal p, int newState,	    GameTime now, TrainModel tm) {	ObjectKey key = new ObjectKey(KEY.TRAINS, p, trainIndex);	ChangeTrainStateMove m  = new ChangeTrainStateMove(world, key,		tm.getTrainMotionModel().getPathTraversedSinceLastSync(),		newState);	moveReceiver.processMove(m);    }