Example #1
0
 public BattleEvent(Character currentActor, BattleAction actorAction, Character actorTarget)
 {
     mActor = currentActor;
     mAction = actorAction;
     actionOutcome = mAction.ToString();
     mActee = actorTarget;
 }
Example #2
0
        public BattleEvent(Character currentActor, BattleAction actorAction, Character actorTarget)
        {
            mActor = currentActor;
            mAction = actorAction;
            actionOutcome = mAction.ToString();
            mActee = actorTarget;

            if (mActee.isDead && !mActee.isPlayer)
            {
                ((PlayerCharacter)mActor).gainExperience(((Enemy)mActee).Worth);
                kill_string = ", " + mActee.Name + " was vanquished!";
            }

            if (mActee.isDead && mActee.isPlayer)
            {
                kill_string = ", " + mActee.Name + " has been slain!";
            }
        }