Skip to content

Instantly share code, notes, and snippets.

@branislav1991
Created June 15, 2022 16:39
Show Gist options
  • Save branislav1991/08364decba39aa555fac46574aaf1e03 to your computer and use it in GitHub Desktop.
Save branislav1991/08364decba39aa555fac46574aaf1e03 to your computer and use it in GitHub Desktop.
class Player
{
public:
Player() {}
void interactWith(InteractiveObject *obj)
{
if (obj)
{
obj->interact();
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment