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; }
public Monster(string Name, string Subtitle, int HP, int MP, int NumAttacks, Attack[] MoveList) : base(Name, HP, MP) { subtitle = Subtitle; numAttacks = NumAttacks; moveList = MoveList; }
//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; } } }
//Get Methods //Set Methods public void setDefaultAttack(Attack DefaultAttack) { defaultAttack = DefaultAttack; }
public Player(string Name, int HP, int MP, int PoisonResist, int ParalyzeResist, Attack DefaultAttack) : base(Name, HP, MP, PoisonResist, ParalyzeResist) { defaultAttack = DefaultAttack; }
public Player(string Name, int HP, int MP, int PoisonResist, int ParalyzeResist) : base(Name, HP, MP, PoisonResist, ParalyzeResist) { defaultAttack = new Attack(1, 1, 15); }
public Player(string Name, int HP, int MP, Attack DefaultAttack) : base(Name, HP, MP) { defaultAttack = DefaultAttack; }
public Player(string Name, int HP, int MP) : base(Name, HP, MP) { defaultAttack = new Attack(1, 1, 15); }
Attack defaultAttack; //default attack when pressing the attack button #endregion Fields #region Constructors //Constructors public Player() : base() { defaultAttack = new Attack(1, 1, 15); }