Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created October 28, 2014 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BitPuffin/f213c48dd886fe6e39b5 to your computer and use it in GitHub Desktop.
Save BitPuffin/f213c48dd886fe6e39b5 to your computer and use it in GitHub Desktop.
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
@BitPuffin
Copy link
Author

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