public MultiplayerJoinLobbyScreen(MultiplayerConnectionType t) { RelativePosition = FPoint.Zero; Size = new FSize(WIDTH, HEIGHT); Alignment = HUDAlignment.CENTER; Background = FlatColors.BackgroundHUD; Server = new GDMultiplayerClient(t); }
public MultiplayerClientLobbyPanel(GDMultiplayerClient server) { RelativePosition = FPoint.Zero; Size = new FSize(WIDTH, HEIGHT); Alignment = HUDAlignment.CENTER; Background = FlatColors.BackgroundHUD; _server = server; }
public GDGameScreen_MPClient(MainGame game, GraphicsDeviceManager gdm, LevelBlueprint bp, GameSpeedModes speed, int music, GDMultiplayerClient server) : base(game, gdm, bp, FractionDifficulty.DIFF_3, false, true, false) { musicIdx = music; GameSpeedMode = speed; _server = server; CanPause = false; _server.Screen = this; if (server.SessionUserID == 1) { _localPlayerFraction = GetFractionByID(2); } else if (server.SessionUserID == 2) { _localPlayerFraction = GetFractionByID(3); } else if (server.SessionUserID == 3) { _localPlayerFraction = GetFractionByID(4); } else if (server.SessionUserID == 4) { _localPlayerFraction = GetFractionByID(5); } else if (server.SessionUserID == 5) { _localPlayerFraction = GetFractionByID(6); } else { SAMLog.Error("GDGSMPC", "Client with SSID: " + server.SessionUserID); } foreach (var c in GetEntities <Cannon>()) { c.ForceUpdateController(); } GameHUD = new GDMultiplayerGameHUD(this, server); #if DEBUG _server.AddDebugLine(this); #endif }
public void SetMultiplayerClientLevelScreen(LevelBlueprint level, GameSpeedModes speed, int music, GDMultiplayerClient server) { var scrn = new GDGameScreen_MPClient(this, Graphics, level, speed, music, server); SetCurrentScreen(scrn); }