You Are Here:

Community: Developer Discussion Boards

#1 Old Can not extend the Layer class - 2006-08-24, 18:32

Join Date: Aug 2006
Posts: 78
Location: Calgary,Alberta,Canada
Send a message via MSN to desijatt Send a message via Skype™ to desijatt
desijatt's Avatar
desijatt
Offline
Regular Contributor
I cannot extend the Layer class in the game api because its constructor is protected. Does anybody have a clue why it is so??
Reply With Quote

#2 Old Re: Can not extend the Layer class - 2006-08-24, 20:23

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

to force us to extends Layer subclasses like Sprite or TiledLayer,
Quote:
/**
* Creates a new Layer with the specified dimensions.
*
* This constructor is declared package scope to
* prevent developers from creating Layer subclasses

*
* By default, a Layer is visible and its upper-left
* corner is positioned at (0,0).
* @param width The width of the layer, in pixels
* @param height The height of the layer, in pixels
*
*/
hth,
regards,
Peter
Reply With Quote

#3 Old Re: Can not extend the Layer class - 2006-08-29, 16:02

Join Date: May 2006
Posts: 7
Location: Chennai, India
Send a message via MSN to codetiger Send a message via Yahoo to codetiger
codetiger
Offline
Registered User
better write your own layer class. they are already available in many forums, just google on it.


Mobile Game Development - Smackall.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
need information about j2me polish rathikathangaraj Mobile Java General 4 2007-12-19 10:01
Why should Document hold engines/models and not AppUI? nawkboy General Symbian C++ 2 2007-03-14 18:15
21 errors in j2me , help in soving them abhishek_1211 General Messaging 0 2006-04-01 10:04
How to extend Image class davidmanpearl Mobile Java Media (Graphics & Sounds) 1 2006-02-14 09:37
Exceptions while loading application avinash_rs Mobile Java General 0 2003-06-09 11:53

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d127641X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ