Created
December 26, 2015 00:29
-
-
Save st4rdog/b9b234078693273a98ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IWeapon | |
{ | |
void Attack(); | |
} | |
public interface IDamageDealer | |
{ | |
void DealDamage(IDamageable damageable, int amount); | |
} | |
public interface IDamageable | |
{ | |
void TakeDamage(int amount); | |
} | |
public interface IEquippable | |
{ | |
void Equip(); | |
void Unequip(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment