Exemplo n.º 1
0
        public void SendWay(int Way)
        {
            var userIndex = Program.FormMain.Users.FindIndex(C => C.ConnectionID == Context.ConnectionId);

            dispath = Dispath.MyInstance;
            dispath.pressWay(userIndex, Way);
        }
Exemplo n.º 2
0
 public void iamStarted()
 {
     dispath = Dispath.MyInstance;
     //dispath.Time = Program.FormMain.Time*60*5;
     dispath.map.createSnake(Program.FormMain.CountPlayerSetting, Program.FormMain.CountBots, Program.FormMain.BotsSetting);
     dispath.MotorTick += Dispath_MotorTick;
 }
Exemplo n.º 3
0
 public FormMain()
 {
     InitializeComponent();
     dispath = Dispath.MyInstance;
     map     = new Map();
     Users   = new List <User>();
     dispath.StartGame();
 }