Created
October 28, 2014 16:48
-
-
Save BitPuffin/ffa20fb8ae6e900997ef to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| interface ICondition: | |
| def RenameThisHasWornOut() as bool | |
| interface IAffectsStrength(): | |
| def DetermineStrength(currentStrength as int) as int | |
| interface IAffectsDexterity(): | |
| def DetermineDexterity(currentDexterity as int) as int | |
| interface IAffectsStrengthCondition(ICondition, IAffectsStrength): | |
| pass | |
| interface IAffectsDexterityCondition(ICondition, IAffectsDexterity): | |
| pass | |
| class ExhaustedCondition(IAffectsStrengthCondition, IAffectsDexterityCondition): | |
| def RenameThisHasWornOut() as bool: | |
| return true | |
| def DetermineStrength(currentStrength as int) as int: | |
| return currentStrength - 6 | |
| def DetermineDexterity(currentDexterity as int) as int: | |
| return currentDexterity - 6 | |
| #Assets/Test.boo(13,38): BCE0071: Inheritance cycle detected: 'ICondition'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment