From 8981d5e2ed9708abf48da7c611519a3753caee8d Mon Sep 17 00:00:00 2001 From: matiasdcl Date: Tue, 5 Nov 2024 13:51:59 -0300 Subject: [PATCH] Cambios en IAction --- src/Library/Attack.cs | 9 +++++++++ src/Library/Backpack.cs | 10 ++++++++++ src/Library/IAttack.cs | 7 +++++++ src/Library/IMove.cs | 8 -------- src/Library/SpecialAttack.cs | 7 +++++++ 5 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 src/Library/Attack.cs create mode 100644 src/Library/Backpack.cs create mode 100644 src/Library/IAttack.cs delete mode 100644 src/Library/IMove.cs create mode 100644 src/Library/SpecialAttack.cs diff --git a/src/Library/Attack.cs b/src/Library/Attack.cs new file mode 100644 index 0000000..ccc02f3 --- /dev/null +++ b/src/Library/Attack.cs @@ -0,0 +1,9 @@ +namespace Library; + +public class Attack : IAttack +{ + public string Name { get;} + public Type types{get;} + double Accuracy {get;} + int power {get;} +} \ No newline at end of file diff --git a/src/Library/Backpack.cs b/src/Library/Backpack.cs new file mode 100644 index 0000000..18adbda --- /dev/null +++ b/src/Library/Backpack.cs @@ -0,0 +1,10 @@ +namespace Library; + +public class Backpack : IAction +{ + public void UseItem(Player player) + { + + + } +} \ No newline at end of file diff --git a/src/Library/IAttack.cs b/src/Library/IAttack.cs new file mode 100644 index 0000000..968e9ae --- /dev/null +++ b/src/Library/IAttack.cs @@ -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;} +} \ No newline at end of file diff --git a/src/Library/IMove.cs b/src/Library/IMove.cs deleted file mode 100644 index 7094080..0000000 --- a/src/Library/IMove.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Library; -// Interfaz creada para subir la cohesiĆ³n y bajar el acoplamiento. -public interface IMove: IAction -{ - string Name { get; } - bool Special { get; } - int LastTurnPlayed { get; } -} \ No newline at end of file diff --git a/src/Library/SpecialAttack.cs b/src/Library/SpecialAttack.cs new file mode 100644 index 0000000..79c5b10 --- /dev/null +++ b/src/Library/SpecialAttack.cs @@ -0,0 +1,7 @@ +namespace Library; + +public class SpecialAttack : Attack +{ + string SpecialEffect; + int LastTurnPlayed; +} \ No newline at end of file