12-03-2019, 12:32 AM
(12-02-2019, 09:47 PM)Tedgp908 > Wrote: I’m the future add some comments comments above a function or class. It will make it a lot easier to debug your code, and for other people in the future to help.
/**
* Name and description
* @param namOfParameter.
* @return nameOfWhatsBeingReturned
*/
Don’t use the underscore text thing your doing when declaring constants it read only variables. Should be PascalCasing in your code. I didn’t see this here but don’t use underscores in identifiers, unless it’s private then you can have a leading underscore.
Also good use of an enumeration
Thank you. I will definitely use comments next time i code. So for Pascal Casing. I dont know much about that so would it be like: private EnemyState EnemyState; instead of private EnemyState enemy_State;