public MainController(Control Control, MessageFilter MessageFilter, Boolean EnableStepping, Boolean EnableDrawing, Boolean Online) : base(Control, MessageFilter, EnableStepping, EnableDrawing, Online) { // Simplest Controller Processing = new Thread(Run) { Name = "Controller" }; // if (Online) { Connection = new DiepConnection(); Connection.MessageReceived += Client_MessageReceived; Connection.Start(); var connectMessage = new ConnectMessage() { Id = -1, Name = DiepConnection.GetUsername(), }; Connection.Enqueue(connectMessage); } // Starting Controller Dictionaries Tanks = new Dictionary <long, Tank>(); Shoots = new Dictionary <long, Shoot>(); Shapes = new Dictionary <long, Shape>(); }