Exemplo n.º 1
0
 public Bot(TestNativeUser.IUser user, string name,Regulus.Utility.Console.IViewer view,string ip,int port)
 {
     _Ip = ip; ;
     _Port = port;
     // TODO: Complete member initialization
     this.User = user;
     this._Name = name;
     _Machine = new Regulus.Utility.StageMachine();
     _View = view;
 }
Exemplo n.º 2
0
        Bot _CreateBot(TestNativeUser.IUser user,string name)
        {
            var bot = new Bot(user , name , _View,_Ip , _Port);
            _Bots.Add(bot);

            return bot;
        }
Exemplo n.º 3
0
 public Appliaction(TestNativeUser.Application appliaction , Regulus.Utility.Console.IViewer view)
 {
     _Bots = new Regulus.Utility.Updater();
     this._Appliaction = appliaction;
     _View = view;
 }
Exemplo n.º 4
0
 void _RestoryBot(TestNativeUser.IUser user)
 {
     foreach(var bot in _Bots.Objects)
     {
         if ((bot as Bot).User == user)
         {
             _Bots.Remove(bot);
             _BotAmount++;
         }
     }
 }
Exemplo n.º 5
0
        void _RestoryBot(TestNativeUser.IUser user)
        {
            var bots = (from b in _Bots.Objects where b.User == user select b).ToArray();
            foreach(var bot in bots)
            {

                _Bots.Remove(bot);
                _BotAmount++;
            }
        }
Exemplo n.º 6
0
 public SendStage(TestNativeUser.IUser user, Regulus.Utility.Console.IViewer view)
 {
     _User = user;
     _View = view;
 }
Exemplo n.º 7
0
 public ConnectStage(TestNativeUser.IUser user , string ip , int port)
 {
     _Ip = ip;
     _Port = port;
     _User = user;
 }