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

            _Machine = new Game.StageMachine();
        }
示例#2
0
文件: User.cs 项目: kof1016/Regulus
 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;
 }
示例#3
0
文件: User.cs 项目: kof1016/Regulus
 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;
 }
示例#4
0
文件: Peer.cs 项目: kof1016/Regulus
 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;
 }
示例#5
0
文件: Bot.cs 项目: kof1016/Regulus
 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;
 }
示例#6
0
文件: Core.cs 项目: kof1016/Regulus
        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) => { };
        }
示例#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) => { };
        }
示例#8
0
文件: Levels.cs 项目: kof1016/Regulus
        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>(); ;
        }
示例#9
0
文件: Combat.cs 项目: kof1016/Regulus
        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);
        }
示例#10
0
 public User(Regulus.Remoting.ISoulBinder provider)
 {
     StageMachine = new Regulus.Game.StageMachine();
     //_ToConnectState(provider);
     _ToLoginState(provider);
 }
示例#11
0
文件: Bot.cs 项目: kof1016/Regulus
 public Bot(Regulus.Project.SamebestKeys.IUser user,string account)
 {
     _Machine = new Regulus.Game.StageMachine();
     this._User = user;
     _Account = account;
 }