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

            _Providers = new List <Provider>();
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
0
 public ServerHandler(int id, IListenable server, Command command, Console.IViewer viewer)
 {
     _Id      = id;
     _Server  = server;
     _Command = command;
     _Viewer  = viewer;
     _Updater = new Updater();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
            }
Ejemplo n.º 10
0
        private void _Stop()
        {
            _Runable = false;
            _Loops.Shutdown();
            _StageMachine.Termination();
            _Loops = null;

            _StageMachine = null;
            _Viewer       = null;
            _Input        = null;
            _Console      = null;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 ICommandParsable <IUser> IUserFactoty <IUser> .SpawnParser(Command command, Console.IViewer view, IUser user)
 {
     return(new CommandParser(command, view, user));
 }
Ejemplo n.º 13
0
 public StageStart(Command command, Console.IViewer view ,string[] first_command)
 {
     _View = view;
     _FirstCommand = first_command;
     _Command = command;
 }
Ejemplo n.º 14
0
 public CommandParser(Command command, Console.IViewer view, IUser user)
 {
     _Command = command;
     _View    = view;
     _User    = user;
 }