You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mean that users can set this variable in their code and cheat in a spectacular way. For example energy = 500; in a users code will make sure the ant never dies. The same can be done with Colony energy variables.
All protected variables in the ant class need review and colony variables will need to be made private and have getter and setters.
The text was updated successfully, but these errors were encountered:
It should be noted that World factories are visible and accessible by
Ants. This need to change in such a way that other classes can access
the factories without the Ants being able to.
This still needs works as Players can code ants that set object factories to null effectively crashing the game. However the obvious energy = 1000; problems are gone
This mean that users can set this variable in their code and cheat in a spectacular way. For example
energy = 500;
in a users code will make sure the ant never dies. The same can be done with Colony energy variables.All protected variables in the ant class need review and colony variables will need to be made private and have getter and setters.
The text was updated successfully, but these errors were encountered: