using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PRB.PokemonBatlle;
namespace PRB.PokemonBatlle
{
public class Move : Pokemon
{
public Move(string name, Type pokemonType, int healthPoints, int attack, int defense, int speed, List<Move> moves) : base(name, pokemonType, healthPoints, attack, defense, speed, moves)
{
}
public new string Name { get; set; }
public new Type Type { get; set; }
public int Accuracy { get; set; }
public int Power { get; set; }
public int PowerPoints { get; set; }
public bool MakesContact { get; set; }
public new void Moves(string name, Type type, int accuracy, int power, int powerPoints, bool makesContact)
{
if (power < 0 || power > 250)
throw new ArgumentOutOfRangeException("Power moet tussen de 0 en 250 zijn!");
if (accuracy < 30 || accuracy > 100)
throw new ArgumentOutOfRangeException("Accuracy moet tussen de 30 en de 100 zijn!");
if (powerPoints < 0)
powerPoints = 0;
Name = name;
Type = type;
Accuracy = accuracy;
Power = power;
PowerPoints = powerPoints;
MakesContact = makesContact;
}
public string GetInfo()
{
return $"Move: {Name}, Type: {Type}, Accuracy: {Accuracy}, Power: {Power}";
}
public string GetMoveBatlleInfo()
{
return $"Move: {Name}, PowerPoints: {PowerPoints}/{PowerPoints}, Type: {Type}";
}
}
}