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

Clean up the names of entity methods #72

Closed
rexim opened this issue Jan 19, 2018 · 0 comments
Closed

Clean up the names of entity methods #72

rexim opened this issue Jan 19, 2018 · 0 comments

Comments

@rexim
Copy link
Member

rexim commented Jan 19, 2018

Go through all of the entities (game, level, player, etc) and make sure they follow the convention:

  • One translation unit per entity
  • Constructors are create_<entity-name> or create_<entity-name>_from_<resource-name> (for example create_level_from_file)
  • Destructors are destroy_<entity-name>
  • Regular methods are <entity-name>_<method-suffix> (for example player_render)
  • Document these conventions somewhere
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