Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created October 28, 2014 16:48
Show Gist options
  • Select an option

  • Save BitPuffin/ffa20fb8ae6e900997ef to your computer and use it in GitHub Desktop.

Select an option

Save BitPuffin/ffa20fb8ae6e900997ef 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):
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