Created
April 9, 2016 16:59
-
-
Save VictorKoenders/8bb1e7b9c0b44c122d22d3f35962f3ca 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 Person { | |
private: | |
float x; | |
float y | |
public: | |
Person(){ | |
EventListener::instance()->registerEvent("buttonPress", "up", &Person::forward, this); | |
} | |
forward(){ | |
x++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment