Example #1
0
 public Monster(string Name, string Subtitle, int HP, int MP, int NumAttacks, Attack[] MoveList, int PoisonResist, int ParalyzeResist)
     : base(Name, HP, MP, PoisonResist, ParalyzeResist)
 {
     subtitle = Subtitle;
     numAttacks = NumAttacks;
     moveList = MoveList;
 }
Example #2
0
 public Monster(string Name, string Subtitle, int HP, int MP, int NumAttacks, Attack[] MoveList)
     : base(Name, HP, MP)
 {
     subtitle = Subtitle;
     numAttacks = NumAttacks;
     moveList = MoveList;
 }
Example #3
0
        //Action Methods

        public void addAttack(Attack attack)
        {
            for (int i = 0; i < moveList.Length; i++)
            {
                if (attack == moveList[i])
                {
                    break;
                }
                else if (moveList[i] == null)
                {

                    moveList[i] = attack;
                    numAttacks++;
                    break;
                }
            }
        }
Example #4
0
        //Get Methods

        //Set Methods
        public void setDefaultAttack(Attack DefaultAttack)
        {
            defaultAttack = DefaultAttack;
        }
Example #5
0
 public Player(string Name, int HP, int MP, int PoisonResist, int ParalyzeResist)
     : base(Name, HP, MP, PoisonResist, ParalyzeResist)
 {
     defaultAttack = new Attack(1, 1, 15);
 }
Example #6
0
 public Player(string Name, int HP, int MP)
     : base(Name, HP, MP)
 {
     defaultAttack = new Attack(1, 1, 15);
 }
Example #7
0
        Attack defaultAttack;   //default attack when pressing the attack button

        //Constructors
        public Player()
            : base()
        {
            defaultAttack = new Attack(1, 1, 15);
        }