Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark methods not accessible to player with _, and make _ verboten #24

Closed
AlexNisnevich opened this issue Dec 29, 2013 · 2 comments
Closed
Assignees

Comments

@AlexNisnevich
Copy link
Owner

This should both help organization and provide a sipmle solution to preventing players from accessing verboten methods.

@ghost ghost assigned AlexNisnevich Dec 29, 2013
@AlexNisnevich
Copy link
Owner Author

On a related note, why is return verboten?

AlexNisnevich added a commit that referenced this issue Jan 2, 2014
As discussed in #24.

Private variables now prefixed with __ and methods and variables not
exposed to the player are prefixed with _. '_' is verboten, preventing
the player from accessing any non-revealed methods within Game, Player,
Map, and DynamicObject.

The remaining classes remain as-is.
@AlexNisnevich
Copy link
Owner Author

Closed by 405c9c5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant