Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cambios en IAction #5

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Library/Attack.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Library;

public class Attack : IAttack
{
public string Name { get;}
public Type types{get;}
double Accuracy {get;}
int power {get;}
}
10 changes: 10 additions & 0 deletions src/Library/Backpack.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Library;

public class Backpack : IAction
{
public void UseItem(Player player)
{


}
}
7 changes: 7 additions & 0 deletions src/Library/IAttack.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Library;
// Interfaz creada para subir la cohesión y bajar el acoplamiento.
public interface IAttack: IAction
{
protected string Name { get; }
protected Type types{get;}
}
8 changes: 0 additions & 8 deletions src/Library/IMove.cs

This file was deleted.

7 changes: 7 additions & 0 deletions src/Library/SpecialAttack.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Library;

public class SpecialAttack : Attack
{
string SpecialEffect;
int LastTurnPlayed;
}
Loading