Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualWaterlimon

Posted 24 July 2013 - 02:10 PM

You might not have to check all the achievements from the beginning, which makes optimizing this not pointless.

The achievement "Killed second enemy" would be added after the first one is completed. Same with other things that have some preconditions.

I would make a container of achievement objects that check their condition when told to do so. They can then be removed and new ones can be added as the player progresses.

Polymorphism would be used.


#1Waterlimon

Posted 23 July 2013 - 12:36 PM

You might not have to check all the achievements from the beginning, which makes optimizing this not pointless.

The achievement "Killed second enemy" would be added after the first one is completed. Same with other things that have some preconditions.

I would make a container of achievement objects that check their condition when tied to do so. They can then be removed and new ones can be added as the player progresses.

Polymorphism would be used.

PARTNERS