PreFrameHandlers and PostFrameHandlers --> UpdateHandlers

  ... information about changes and new features of AndEngine,

PreFrameHandlers and PostFrameHandlers --> UpdateHandlers

Postby Nicolas Gramlich » Tue Aug 03, 2010 6:55 pm

Hello Community,

recently I decided to merge the lists of "preFrameHandlers" and "postFrameHandlers" into a single list of "UpdateHandlers". The reason for this is that on the one hand making a difference caused some missunderstanding and on the other hand some simplifications could be introduced. Technically no real difference is introduced, as PostFrameHandlers were basically Pre-PreFrameHandlers or the other way around the PreFrameHandlers were Post-PostFrameHandlers.

So when you were previously calling any of these:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public void clearPreFrameHandlers()
  2. public void registerPreFrameHandler(final IUpdateHandler pUpdateHandler)
  3. public void unregisterPreFrameHandler(final IUpdateHandler pUpdateHandler)
  5. public void clearPostFrameHandlers()
  6. public void registerPostFrameHandler(final IUpdateHandler pUpdateHandler)
  7. public void unregisterPostFrameHandler(final IUpdateHandler pUpdateHandler)
Parsed in 0.032 seconds, using GeSHi

You'd now call these:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public void clearUpdateHandlers()
  2. public void registerUpdateHandler(final IUpdateHandler pUpdateHandler)
  3. public void unregisterUpdateHandler(final IUpdateHandler pUpdateHandler)
Parsed in 0.031 seconds, using GeSHi

Best Regards,
Nicolas Gramlich
Site Admin
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: PreFrameHandlers and PostFrameHandlers --> UpdateHandler

Postby Mimminito » Tue Aug 03, 2010 8:21 pm

Awesome! I always got confused with them haha
Adam Goodchild
Your AndEngine Forum Moderator!
My Tutorials List
Posts: 360
Joined: Wed Jul 21, 2010 3:08 pm
Location: Chelsmford, UK

Return to Updates

Who is online

Users browsing this forum: No registered users and 2 guests