Created
October 28, 2014 17:09
-
-
Save BitPuffin/f213c48dd886fe6e39b5 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
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): | |
public def RenameThisHasWornOut() as bool: | |
return true | |
public def DetermineStrength(currentStrength as int) as int: | |
return currentStrength - 6 | |
public def DetermineDexterity(currentDexterity as int) as int: | |
return currentDexterity - 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assets/Test.boo(13,38): BCE0071: Inheritance cycle detected: 'ICondition'.