REFERENCE_Source Code Formatting - CSCI150GTeam/GTeamProject GitHub Wiki

Naming Conventions

  • Source Code Files: Files created for classes belonging to a certain component should attatch the appropriate prefix. Example: class GameController in the Core component would be named "CORE_GameController.h" and "CORE_GameController.cpp"
  • Classes: Class names should be in [CamelCase](http://en.wikipedia.org/wiki/CamelCase) with the first letter always capitalized. Any acronyms such as SDL should be left in all caps. Example: "GameController"
  • Variables: Variables should be in CamelCase as well, except with the first letter always lower case. Like last time, acronyms should be left as is. Example: "numOfChars"
  • Constants: Constants should be in all caps, and have underscores replacing spaces. Example: "SCREEN_WIDTH"
  • Methods: Method names should be in CamelCase, first letter lower case. Example: "drawGrid()"
⚠️ **GitHub.com Fallback** ⚠️