Beispiel #1
0
        protected override void SendGameFightJoinMessage(CharacterFighter fighter)
        {
            var timer = IsStarted ? 0 : (int)GetPlacementTimeLeft(fighter).TotalMilliseconds / 100;

            ContextHandler.SendGameFightJoinMessage(fighter.Character.Client, CanCancelFight(),
                                                    (fighter.Team == ChallengersTeam && IsAttackersPlacementPhase) || (fighter.Team == DefendersTeam && IsDefendersPlacementPhase),
                                                    IsStarted, timer, FightType);
        }
Beispiel #2
0
 protected override void SendGameFightJoinMessage(CharacterFighter fighter)
 {
     ContextHandler.SendGameFightJoinMessage(fighter.Character.Client, CanCancelFight(), true, IsStarted, (int)GetPlacementTimeLeft().TotalMilliseconds / 100, FightType);
 }
 protected override void SendGameFightJoinMessage(FightSpectator spectator)
 {
     ContextHandler.SendGameFightJoinMessage(spectator.Character.Client, false, false, true, base.IsStarted, (int)this.GetPlacementTimeLeft().TotalMilliseconds, this.FightType);
 }
 protected override void SendGameFightJoinMessage(CharacterFighter fighter)
 {
     ContextHandler.SendGameFightJoinMessage(fighter.Character.Client, this.CanCancelFight(), !base.IsStarted, false, base.IsStarted, (int)this.GetPlacementTimeLeft().TotalMilliseconds, this.FightType);
 }
Beispiel #5
0
 protected override void SendGameFightJoinMessage(FightSpectator spectator)
 {
     ContextHandler.SendGameFightJoinMessage(spectator.Character.Client, false, false, true, base.IsStarted, 0, this.FightType);
 }
Beispiel #6
0
        protected override void SendGameFightJoinMessage(CharacterFighter fighter)
        {
            int timeMaxBeforeFightStart = (int)this.GetPlacementTimeLeft(fighter).TotalMilliseconds;

            ContextHandler.SendGameFightJoinMessage(fighter.Character.Client, this.CanCancelFight(), (fighter.Team == this.AttackersTeam && this.IsAttackersPlacementPhase) || (fighter.Team == this.DefendersTeam && this.IsDefendersPlacementPhase), false, base.IsStarted, timeMaxBeforeFightStart, this.FightType);
        }
Beispiel #7
0
 protected override void SendGameFightJoinMessage(CharacterFighter fighter)
 {
     ContextHandler.SendGameFightJoinMessage(fighter.Character.Client, true, !base.IsStarted, false, base.IsStarted, this.GetPlacementTimeLeft(), this.FightType);
 }