Skip to content

Instantly share code, notes, and snippets.

@jamesflorentino
Created January 24, 2012 14:11
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 jamesflorentino/1670363 to your computer and use it in GitHub Desktop.
Save jamesflorentino/1670363 to your computer and use it in GitHub Desktop.
class Humanoid
attack: (target) ->
target.hp -= @damage
class Elf extends Humanoid
attack: (target) ->
super()
target.hp -= @magicBonus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment