c# - Is there any way to access parameter or method of object with in Linklist that is for every object -


I am working on trees and I want to use the object parameter, linlinkilist-> Node-> Object-> object but could not do that.

I'm trying to do what it takes in the object tree object, and the object of the search

Object 2 types linked list of parent and child, and these objects To get another object created, I want to search and search for this collisionObject , but I can not access it.

I try List.head. Use data but i could not succeed i I do not want to convert the list data parameter to the CollisionObject class because I want to use this linked list for each other object, generally I do the parameters that I want to make public I am receiving or receiving; Set; To add an object to a list inside another object. I can not access the parameters or methods in the data and can not even object in the data

  public square child {Private CollisonObject colobj; Public Child (CollisonObject c) {this.colobj = c; } Public Child (Ref Collision Object O) {this.refcolobj = o; } Public Zero Draw (Spritebatch SB) {colobj.draw (SB); }} Parent parents of the public {CollisonObject pcolobj; Private Link List List = New LinkList (); Public Parent (CollisonObject o) {this.pcolobj = o; } Start render public void RenderPanel (SpriteBatch sb) {//Console.WriteLine (Child Control Panel) ( "+ name +") to "); exotic hair (object hair control) {parent objPanel = items as parents; if (objPanel == nULL) {baby as objTextbpx = item; if (objTextbpx == nULL) {break; ObjTextbpxkdraw (Sb);} and {objPanel.draw (sb) ; ObjPanel.RenderPanel (sb);}} // console.light line ("Control of hair for panel" ("+ name +") render and ");} Public Zero CreateChildControl (object control) {list.A DdtoBegining (Control);} Public Zero Deletion Delete Control (Object Control) {ChildControls.Remove (control);} Public Zero Draw (Sprintbatch SB) {pcolobj.draw (sb);} Public Object Search (object o) {CollisonObject co = (CollisonObject) O; co = (CollisonObject) list.head.data; ChildControls.Remove (co.Name); return o;}}  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -