Пример #1
0
        void Regulus.Framework.ILaunched.Launch()
        {
            _Binder.BreakEvent += _Break;
            _Machine = new Regulus.Utility.StageMachine();

            _ToVerify();
        }
Пример #2
0
 public Behavior(Entity entity)
 {
     _SelfUpdater = new Utility.Updater();
     _SelfUpdater.Add(this);
     _Entity = entity;
     _Machine = new Utility.StageMachine();
 }
Пример #3
0
 public User(Remoting.ISoulBinder binder , IStorage storage)
 {
     _Machine = new Utility.StageMachine();
     this._Binder = binder;
     _Account = new Data.Account();
     _Storage = storage;
 }
Пример #4
0
 public User(Remoting.ISoulBinder binder, IStorage _Storage , Zone zone)
 {
     this._Binder = binder;
     _Zone = zone;
     _Binder.BreakEvent += _Break;
     this._Storage = _Storage;
     _Machine = new Regulus.Utility.StageMachine();
 }
Пример #5
0
 public StandalongUser(Game game)
 {
     _Game = game;
     _Agent = new Regulus.Standalong.Agent();
     _Machine = new Regulus.Utility.StageMachine();
     _ConnectProvider = new Regulus.Remoting.Ghost.TProvider<Project.SamebestKeys.IConnect>();
     _OnlineProvider = new Regulus.Remoting.Ghost.TProvider<Project.SamebestKeys.IOnline>();
 }
Пример #6
0
 public User(Regulus.Remoting.IAgent agent)
 {
     _Agent = agent;
     _ConnectProvider = new Regulus.Remoting.Ghost.TProvider<Regulus.Utility.IConnect>();
     _OnlineProvider = new Regulus.Remoting.Ghost.TProvider<Regulus.Utility.IOnline>();
     _Machine = new Regulus.Utility.StageMachine();
     _Updater = new Regulus.Utility.Updater();
 }
Пример #7
0
 public User(Regulus.Remoting.Soul.SoulProvider provider , Regulus.Project.TurnBasedRPG.UserRoster user_roster , IWorld world)
 {
     _UserRoster = user_roster;
     _Machine = new Regulus.Utility.StageMachine<User>(this);
     Provider = provider;
     provider.BreakEvent += Quit;
     _World = world;
 }
Пример #8
0
        public User(IBinder binder, Room room)
        {
            this._Binder = binder;
            this._Room   = room;
            _Machine     = new Utility.StageMachine();

            _ToLogin();
        }
Пример #9
0
        public User(Remoting.ISoulBinder provider, IWorld world , IStorage storage)
        {
            _Storage = storage;

            _Machine = new Regulus.Utility.StageMachine();
            Provider = provider;
            provider.BreakEvent += Quit;
            _World = world;
        }
Пример #10
0
        public ActorCast(Serializable.Skill skill, ActorPropertyAbility actor, Remoting.Value<CastResult> return_value)
        {
            _Actor = actor;
            this._Skill = skill;

            this._ReturnValue = return_value;
            _Done = false;
            _Machine = new Utility.StageMachine();
            _Step = CastStep.NotYet;
        }
Пример #11
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;
 }
Пример #12
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;
 }
Пример #13
0
        public Core(Regulus.Remoting.ISoulBinder binder, IStorage storage, IZone zone )
        {
            _Zone = zone;
            Storage = storage;
            _Binder = binder;

            _StageMachine = new Regulus.Utility.StageMachine();

            binder.BreakEvent += _OnInactive;
            _StatusEvent += (s) => { };
        }
Пример #14
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.Utility.StageMachine();

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

            _Platoons = new Utility.Updater(); ;
        }
Пример #15
0
        public void MachineTest()
        {
            Regulus.Utility.IBootable    stage1  = NSubstitute.Substitute.For <Regulus.Utility.IBootable>();
            Regulus.Utility.IBootable    stage2  = NSubstitute.Substitute.For <Regulus.Utility.IBootable>();
            Regulus.Utility.StageMachine machine = new Regulus.Utility.StageMachine();

            machine.Push(stage1);
            machine.Push(stage2);

            machine.Clean();

            stage1.Received().Launch();
            stage1.Received().Shutdown();
            stage2.Received().Launch();
            stage2.Received().Shutdown();
        }
Пример #16
0
 public BotMapStage(Regulus.Project.SamebestKeys.IUser _User)
 {
     this._User = _User;
     _SceneBorns = new SceneBorn[]
     {
         new SceneBorn() { Name = "SC_1A" , Points = new Regulus.CustomType.Point[]
             {
                 new Regulus.CustomType.Point(41,420 ),
                 new Regulus.CustomType.Point(41,320 ),
                 new Regulus.CustomType.Point(37,80 ),
                 new Regulus.CustomType.Point(26,63 ),
                 new Regulus.CustomType.Point(105,290 )
             }},
         /*new SceneBorn() { Name = "SL_1B_2" , Points = new Regulus.Types.Point[]
             {
                 new Regulus.Types.Point(264,438),
                 new Regulus.Types.Point(265,250),
                 new Regulus.Types.Point(82,545),
                 new Regulus.Types.Point(80,477),
                 new Regulus.Types.Point(185,247)
             }},
         new SceneBorn() { Name = "SL_1C" , Points = new Regulus.Types.Point[]
             {
                 new Regulus.Types.Point(72,267),
                 new Regulus.Types.Point(128,198),
                 new Regulus.Types.Point(176,330),
                 new Regulus.Types.Point(184,115),
                 new Regulus.Types.Point(265,101)
             }},
         new SceneBorn() { Name = "SL_1K" , Points = new Regulus.Types.Point[]
             {
                 new Regulus.Types.Point(99,172),
                 new Regulus.Types.Point(213,200),
                 new Regulus.Types.Point(336,182),
                 new Regulus.Types.Point(434,170),
                 new Regulus.Types.Point(534,183)
             }},*/
     };
     _Machine = new Regulus.Utility.StageMachine();
 }
Пример #17
0
 public AccountAdsorber()
 {
     _Machine = new Regulus.Utility.StageMachine();
 }
Пример #18
0
 public User(Regulus.Remoting.ISoulBinder binder)
 {
     this._Binder = binder;
     _Machine = new Regulus.Utility.StageMachine();
 }
Пример #19
0
 public PlayerAdsorber()
 {
     _Machine = new Regulus.Utility.StageMachine();
 }
Пример #20
0
 public MemberHandler(Member member)
 {
     this._Member = member;
     _Machine = new Utility.StageMachine();
 }
Пример #21
0
 public Bot(Regulus.Project.SamebestKeys.IUser user,string account)
 {
     _Machine = new Regulus.Utility.StageMachine();
     this._User = user;
     _Account = account;
 }
Пример #22
0
        internal void Initial(Team team1, Team team2)
        {
            _CommonSkillSet = new CommonSkillSet();
            _CommonSkillSet.Shuffle();
            _CommonSkillSet.EmptyEvent += () => { DrawEvent(); };
            _Teams = new Team[] { team1 , team2 };
            _StageMachine = new Regulus.Utility.StageMachine();

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

            _ToStrategy(_Teams);
        }