Skip to content

Commit

Permalink
Merge pull request #5 from ucudal/cambios-IAction
Browse files Browse the repository at this point in the history
Cambios en IAction
  • Loading branch information
mariaines-barral authored Nov 5, 2024
2 parents e39f25b + 8981d5e commit c96aa10
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
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;
}

0 comments on commit c96aa10

Please sign in to comment.