Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
                }
            }
        }
Beispiel #4
0
 //Get Methods
 //Set Methods
 public void setDefaultAttack(Attack DefaultAttack)
 {
     defaultAttack = DefaultAttack;
 }
Beispiel #5
0
 public Player(string Name, int HP, int MP, int PoisonResist, int ParalyzeResist, Attack DefaultAttack)
     : base(Name, HP, MP, PoisonResist, ParalyzeResist)
 {
     defaultAttack = DefaultAttack;
 }
Beispiel #6
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);
 }
Beispiel #7
0
 public Player(string Name, int HP, int MP, Attack DefaultAttack)
     : base(Name, HP, MP)
 {
     defaultAttack = DefaultAttack;
 }
Beispiel #8
0
 public Player(string Name, int HP, int MP)
     : base(Name, HP, MP)
 {
     defaultAttack = new Attack(1, 1, 15);
 }
Beispiel #9
0
        Attack defaultAttack; //default attack when pressing the attack button

        #endregion Fields

        #region Constructors

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