• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insert(Layer, int) in GameCanvas

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to me that the method: insert(Layer layer, int index) in GameCanvas is replacing the Layer for the specified index since the Layer is first removed from the LayerManager if it has already been added. So the name "insert" is kind of confusing, use "set" better!
[ August 26, 2004: Message edited by: Alibabra Sanjie ]
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alibabra Sanjie:
It seems to me that the method: insert(Layer layer, int index) in GameCanvas is replacing the Layer for the specified index since the yayer is first removed from the LayerManager if it has already been added. So the name "insert" is kind of confusing, use "set" better!


Yes, u r right... it seems like the usage of set is more familiar to us and the word "insert" means inserting sthing additionally... Anyway, that's what we have to know for SCMAD and go ahead with that..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic