Example #1
0
        public TcpController(Regulus.Utility.Command command, Regulus.Utility.Console.IViewer view)
        {
            _Command = command;
            _View = view;

            _Machine = new Game.StageMachine();
        }
Example #2
0
 public User(Regulus.Remoting.Soul.SoulProvider provider , Regulus.Project.TurnBasedRPG.UserRoster user_roster , IWorld world)
 {
     _UserRoster = user_roster;
     _Machine = new Regulus.Game.StageMachine<User>(this);
     Provider = provider;
     provider.BreakEvent += Quit;
     _World = world;
 }
Example #3
0
 public User(Remoting.ISoulBinder provider, Regulus.Project.SamebestKeys.UserRoster user_roster, IWorld world , IStorage storage)
 {
     _Storage = storage;
     _UserRoster = user_roster;
     _Machine = new Regulus.Game.StageMachine<User>(this);
     Provider = provider;
     provider.BreakEvent += Quit;
     _World = world;
 }
Example #4
0
 public Peer(System.Net.Sockets.Socket client)
 {
     _Socket = client;
     _SoulProvider = new Remoting.Soul.SoulProvider(this, this);
     _Responses = new Queue<Remoting.Package>();
     _Requests = new Queue<Request>();
     _ReadMachine = new Game.StageMachine();
     _WriteMachine = new Game.StageMachine();
     _Enable = true;
 }
Example #5
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.Game.StageMachine();
     _View = view;
 }
Example #6
0
        public Core(Regulus.Remoting.ISoulBinder binder, IStorage storage, IZone zone )
        {
            _Zone = zone;
            Storage = storage;
            _Binder = binder;

            _StageMachine = new Regulus.Game.StageMachine();

            binder.BreakEvent += _OnInactive;
            _StatusEvent += (s) => { };
        }
Example #7
0
        public Core(Regulus.Remoting.ISoulBinder binder, IStorage storage, IMap zone , Battle.IZone battle)
        {
            _Battle = battle;
            _Zone = zone;
            Storage = storage;
            _Binder = binder;
            _Binder.Bind<IUserStatus>(this);
            _StageMachine = new Regulus.Game.StageMachine();

            binder.BreakEvent += _OnInactive;
            _StatusEvent += (s) => { };
        }
Example #8
0
        public Levels(MapPrototype map_prototype, Squad squad)
        {
            _Position = 0.0f;
            _Id = Guid.NewGuid();
            this._MapPrototype = map_prototype;
            _Stations = new Queue<Station>(_MapPrototype.Stations);
            _StageMachine = new Regulus.Game.StageMachine();

            _Platoon = new Platoon(squad);
            _Platoon.EmptyEvent += () => { ReleaseEvent(); };

            _Platoons = new Utility.Updater<Platoon>(); ;
        }
Example #9
0
        internal void Initial(Team team1, Team team2)
        {
            _CommonSkillSet = new CommonSkillSet();
            _CommonSkillSet.Shuffle();
            _CommonSkillSet.EmptyEvent += () => { DrawEvent(); };
            _Teams = new Team[] { team1 , team2 };
            _StageMachine = new Regulus.Game.StageMachine();

            _Take(_Teams , _CommonSkillSet);
            _InitialBroadcasting(_Teams);

            _ToStrategy(_Teams);
        }
Example #10
0
 public User(Regulus.Remoting.ISoulBinder provider)
 {
     StageMachine = new Regulus.Game.StageMachine();
     //_ToConnectState(provider);
     _ToLoginState(provider);
 }
Example #11
0
 public Bot(Regulus.Project.SamebestKeys.IUser user,string account)
 {
     _Machine = new Regulus.Game.StageMachine();
     this._User = user;
     _Account = account;
 }