TankGame.GAMESTATE.getRoot().updateRenderState();
return p;
} else if (scm instanceof TankSynchronizeCreateMessage) {
System.out.println("TankSyncMsg");
TankSynchronizeCreateMessage msg = (TankSynchronizeCreateMessage) scm;
Tank tank = null;
try {
tank = new Tank(msg);
} catch (MalformedURLException e) {
System.err.println("Could not create Tank");
e.printStackTrace();
System.exit(1);
}
TankGame.GAME.lock();
TankGame.GAMESTATE.getRoot().attachChild(tank);
TankGame.GAMESTATE.getRoot().updateGeometricState(0, true);
tank.setRenderQueueMode(Renderer.QUEUE_OPAQUE);
TankGame.GAMESTATE.getRoot().updateRenderState();
TankGame.GAME.unlock();
return tank;
} else if (scm instanceof TeapotSynchronizeCreateMessage) {
System.out.println("TeapotSyncMsg");