-
Notifications
You must be signed in to change notification settings - Fork 700
CodingGuidelines
We strictly use two spaces instead of tabs.
Because SimulationCraft is a open-source project mainly developed by hobby programmers, we try to focus strongly on code readability. Always try to make your code as easy to read as possible and don't hold back on white-space.
Try to put as many meaningful comments into the code as possible, as it makes it much easier for other/new developers to understand the meaning and intention of a code block.
Try to document game mechanics, especially non-intuitive behavior and bugs with information on who tested/implemented it and add a date to it.
Avoid hard coded numbers if possible. If they are absolutely necessary, document it and include a date.
As of this writing, the Constraints of GCC 4.6, Clang 3.1 and Microsoft Visual Studio 11 ( 2012 ) allows for:
- auto
- static_assert
- range based for loops
- override/final
- default/deleleted functions
- lambdas
- Right Angle Brackets
A complete list of compiler support for various features can be found here
- Features
- Starters guide
- Frequently asked questions
- Common Issues
- Textual configuration interface
- Classes
- Graphical User Interface
- Appendixes
- Developers Corner