Exemplo n.º 1
0
        public ReviewResult ArmyReview(int uid)
        {
            Player       player = GetPlayer(uid);
            ReviewResult result = player.CurrentKingdom.Army.Review();

            entities.SaveChanges();
            return(result);
        }
Exemplo n.º 2
0
        public ReviewResult Review()
        {
            ReviewResult reviewresult = new ReviewResult();

            if (this.Kingdom.Player.Movement < 1)
            {
                reviewresult.result  = ResultType.NoMovement;
                reviewresult.success = false;
                return(reviewresult);
            }
            this.Kingdom.Player.Movement -= 1;
            this.Kingdom.SaveChanges();
            reviewresult.success = true;
            reviewresult.army    = new ArmyInfo(this);
            reviewresult.result  = ResultType.Success;
            return(reviewresult);
        }