Ejemplo n.º 1
0
        public void makeAMove(int targetId)
        {
//            var timer = new Stopwatch();
//            timer.Start();
//            var delayInMs = RngUtil.intRange(0, (int)moveReplyMaxDelayInMs);
//		    while (timer.ElapsedMilliseconds < delayInMs) continue;

            var newMove = new FightMove
            {
                PeerObjectId   = this.ObjectId,
                AttackSpot     = FightUtils.getRandomHit(),
                BlockSpots     = FightUtils.getRandomBlock(),
                TargetObjectId = targetId
            };

            CurrentFight.AddMoveSendPkg(this, newMove);
        }
Ejemplo n.º 2
0
        public void makeAMove()
        {
            if (CurrentFight.hasMovesAgainstAll(this))
            {
                return;
            }
            var newMove = new FightMove
            {
                PeerObjectId   = this.ObjectId,
                AttackSpot     = FightUtils.getRandomHit(),
                BlockSpots     = FightUtils.getRandomBlock(),
                SkillId        = 0,
                TargetObjectId = Target.ObjectId
            };

            DebugUtils.Logp(DebugUtils.Level.INFO, CLASSNAME, "makeAMove", "bot submitting a move");
            CurrentFight.AddMoveSendPkg(this, newMove);
        }