dkyan33
dkyan33
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
this works now thank you
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
I have to drive home now so I won't be able to answer for a moment, but I already want to thank you in advance for helping me out
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
that gives also an error
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
intellisense didn't give me a 32 bit option
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
it said this return a non negative integer and then I get this error
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
that it generates a random number and if it is lower than Accuracy it gos into the if statement
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
what am I looking for in the intellisense?
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
is there a way I can copy them all and put them here?
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
the whole program that's the problem. And I don't know why but it has 31 errors in total
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
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}";
}




}
}
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}";
}




}
}
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
but if I try to add arguments it won't take any
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
If you need more code to understand it, ask me and I will send it
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
No description
52 replies
CC#
Created by dkyan33 on 1/11/2024 in #help
Problem with Pokemon Game for school
?
52 replies