예제 #1
0
        public override string ToString(Game game)
        {
            Readable_LifeTarget attacker = game.Get_ReadableSnapshot(this.attackerID);
            Readable_LifeTarget defender = game.Get_ReadableSnapshot(this.defenderID);

            return(attacker.ToString(game) + " attacks " + defender.ToString(game));
        }
예제 #2
0
        public override string ToString(Game game)
        {
            Readable_LifeTarget target = game.Get_ReadableSnapshot(this.TargetID);
            int    amount = this.AmountToGain;
            string result = target.ToString(game);

            if (amount > 0)
            {
                result += " gains ";
            }
            else
            {
                result += " loses ";
                amount *= -1;
            }
            result += amount.ToString() + " hitpoint";
            if (amount != 1)
            {
                result += "s";
            }
            return(result);
        }