Example #1
0
 public Framework(Console.IViewer viewer, Console.IInput input, Console console)
 {
     _Viewer  = viewer;
     _Input   = input;
     _Loops   = new Updater();
     _Console = console;
 }
Example #2
0
 public Framework(Console.IViewer viewer, Console.IInput input)
 {
     _Viewer  = viewer;
     _Input   = input;
     _Loops   = new Updater();
     _Console = new Console(_Input, _Viewer);
 }
Example #3
0
 public StageSelectSystem(Console.IViewer viewer, ControllerProvider[] system_provider, Command command)
 {
     SelectSystemEvent = system_selector => { };
     _Viewer           = viewer;
     _SystemProviders  = system_provider;
     _Command          = command;
 }
Example #4
0
 public ReceiveContinuousNumberStage(int id, IPeer peer, Console.IViewer viewer)
 {
     _Id     = id;
     _Peer   = peer;
     _Viewer = viewer;
     _Buffer = new byte[Config.Default.PackageSize];
 }
Example #5
0
        public GameModeSelector(Command command, Console.IViewer view)
        {
            _Command = command;
            _View    = view;

            _Providers = new List <Provider>();
        }
Example #6
0
 public SendStringStage(int id, IPeer peer, Console.IViewer viewer, Command command)
 {
     _Peer              = peer;
     _Viewer            = viewer;
     _Command           = command;
     _CommandSendString = string.Format("send{0}", id);
 }
Example #7
0
 public ServerHandler(int id, IListenable server, Command command, Console.IViewer viewer)
 {
     _Id      = id;
     _Server  = server;
     _Command = command;
     _Viewer  = viewer;
     _Updater = new Updater();
 }
Example #8
0
 public UserProvider(IUserFactoty <TUser> factory, Console.IViewer view, Command command)
 {
     _Controllers = new List <Controller <TUser> >();
     Factory      = factory;
     _View        = view;
     _Command     = command;
     _Current     = null;
     _Updater     = new Updater();
 }
Example #9
0
            public StageSystemReady(Console.IViewer view, ControllerProvider controller_provider, Command command)
            {
                UserRequesterEvent  = user_requester => { };
                _Viewer             = view;
                _ControllerProvider = controller_provider;
                _Command            = command;

                _SelectedControlls = new List <IController>();
                _Controlls         = new List <IController>();
                _Loops             = new Updater();
            }
Example #10
0
        private void _Stop()
        {
            _Runable = false;
            _Loops.Shutdown();
            _StageMachine.Termination();
            _Loops = null;

            _StageMachine = null;
            _Viewer       = null;
            _Input        = null;
            _Console      = null;
        }
Example #11
0
 public FakeSocket(IPEndPoint ip_end_point, Command command, Console.IViewer viewer)
 {
     _IpEndPoint = ip_end_point;
     _Command    = command;
     _Viewer     = viewer;
     _Id         = ++_InstanceId;
     _MissCount  = ushort.MaxValue + 1;
     _Time       = new Time();
     _Time.Sample();
     _Random          = new System.Random(0);
     _SendRecords     = new List <Record>();
     _ReceiveMessages = new List <SocketMessage>();
     _SendTime        = 0;
     _SendTimeJitter  = 0f;
 }
Example #12
0
 ICommandParsable <IUser> IUserFactoty <IUser> .SpawnParser(Command command, Console.IViewer view, IUser user)
 {
     return(new CommandParser(command, view, user));
 }
Example #13
0
 public StageStart(Command command, Console.IViewer view ,string[] first_command)
 {
     _View = view;
     _FirstCommand = first_command;
     _Command = command;
 }
Example #14
0
 public CommandParser(Command command, Console.IViewer view, IUser user)
 {
     _Command = command;
     _View    = view;
     _User    = user;
 }