Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can do the very same with inheritance, where `Player` and `Monster` inherit `Flying`


What about walking monsters? Another inheritance branch for those? And other subtrees for other effects? What about making those effects temporary?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: