Last active
June 15, 2022 16:40
-
-
Save branislav1991/39b377c13fd0e6234b8533e3d8f20350 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 Player | |
{ | |
public: | |
Player() {} | |
void interactWith(Door *door) | |
{ | |
if (door) | |
{ | |
door->toggleOpen(); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment