예제 #1
0
 public LagCompensationSystemGroup(Contexts contexts, ITimeMachine timeMachine,
                                   LagCompensationSystem[] lagCompensationSystems, IServerSnapshotHistory serverSnapshotHistory)
 {
     this.contexts               = contexts;
     this.timeMachine            = timeMachine;
     this.lagCompensationSystems = lagCompensationSystems;
     this.serverSnapshotHistory  = serverSnapshotHistory;
 }
예제 #2
0
 public void RegisterTimeMachine(ITimeMachine roll)
 {
     if (roll != null && _timeMachineHash.Add(roll))
     {
         ;
     }
     {
         _allTimeMachines = null;
     }
 }
예제 #3
0
        public Warrior(string warriorName, ITimeMachine timeMachine, int life = 100)
        {
            _logger = LogManager.GetLogger(typeof(Warrior));

            _warriorName = warriorName;
            if (timeMachine == null)
            {
                throw new ArgumentNullException("timeMachine");
            }
            _timeMachine = timeMachine;

            WarriorState = new WarriorState {
                Life = life
            };
        }
예제 #4
0
 public Humanize(ITimeMachine timeMachine)
 {
     TimeMachine = timeMachine;
 }
예제 #5
0
 public void UnregisterTimeMachine(ITimeMachine timeMachine)
 {
     _timeMachineList.Remove(timeMachine);
 }
예제 #6
0
 public void RegistertimeMachine(ITimeMachine timeMachine)
 {
     _timeMachineList.Add(timeMachine);
 }
예제 #7
0
 /// <summary>
 /// Creates a new instance of <see cref="ParkingHouse"/>.
 /// </summary>
 /// <param name="time">Concept of time used by the parking house.</param>
 /// <param name="info">Parking house setup.</param>
 public ParkingHouse(ITimeMachine time, ParkingHouseInformation info)
 {
     _time = time;
     _info = info;
 }
예제 #8
0
 public Humanize(ITimeMachine timeMachine)
 {
     TimeMachine = timeMachine;
 }