-
-
Save jerstlouis/b866bc0d609769e47b4c639cc76609c1 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
class ResourceObject | |
{ | |
int hp; | |
} | |
class Unit : ResourceObject | |
{ | |
property int hp | |
{ | |
/* | |
set { *&hp = value; } | |
get { return *&hp; } | |
*/ | |
set { ResourceObject::hp = value; } | |
get { return ResourceObject::hp; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment