Slick Forums

Discuss the Slick 2D Library
It is currently Fri Dec 13, 2019 2:20 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Dec 28, 2010 11:08 pm 
Offline
Regular
User avatar

Joined: Wed Apr 15, 2009 12:51 pm
Posts: 104
The classes NeatTriangulator, MannTriangulator, OverTriangulator make use of some classes which don't implement serializable (e.g. NeatTriangulatur uses class Edge of AWT and BasicTriangulator the inner class PointList).

Without the feature to serialize Shape its impossible to send such data through the internet (network game) or to save the game.

I've tried to set the triangulator member of class Shape to transient and it seems to work. Please take a look at these classes!

Thanks a lot!
Lufti


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 10:05 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Making the triangulator transient seems perfectly valid to me. I'll update it that way.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 2:35 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Fixed in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group