Esempio n. 1
0
        public void MissedMe()
        {
            RPGAnimation miss = new RPGAnimation(AnimationType.Miss);

            miss.X = this.X;
            miss.Y = this.Y + 1;
            Session.thisSession.thisArea.AddObject(miss);
        }
Esempio n. 2
0
        public void DamageMe(int dmg)
        {
            this.HPAdjustCurrent(-dmg);
            string msg = "" + this.Name + " takes " + dmg + " damage.";

            Session.Print(msg);
            lastDamage = System.DateTime.Now;

            RPGAnimation hit = new RPGAnimation(AnimationType.Hit_Physical);

            hit.X = this.X;
            hit.Y = this.Y + 1;
            Session.thisSession.thisArea.AddObject(hit);

            // then check for death
            if (this.HPCurrent <= 0)
            {
                ApplyDeath();
            }
        }