Ejemplo n.º 1
0
 public StateLawNode(int num)
 {
     data.dotPos=0;
     data.lawNum=num;
     data.IsDotEnded=false;
     next=null;
 }
Ejemplo n.º 2
0
 public void add(StateLawItem newItem)
 {
     StateLawNode temp=first;
     if(first==null)
     {
         first=new StateLawNode(newItem);
         return;
     }
     while(temp.next!=null)
     {
         temp=temp.next;
     }
     temp.next=new StateLawNode(newItem);
     this.lawCount++;
 }
Ejemplo n.º 3
0
 public StateLaws()
 {
     first=null;
     lawCount=0;
 }
Ejemplo n.º 4
0
 public StateLawNode(StateLawItem newItem)
 {
     this.data=newItem;
     next=null;
 }
Ejemplo n.º 5
0
        public void add(int dotPos,int lawNum)
        {
            StateLawItem newItem;
            newItem.dotPos=dotPos;
            newItem.IsDotEnded=false;
            newItem.lawNum=lawNum;

            StateLawNode temp=first;
            if(first==null)
            {
                first=new StateLawNode(newItem);
                return;
            }
            while(temp.next!=null)
            {
                temp=temp.next;
            }
            temp.next=new StateLawNode(newItem);
            this.lawCount++;
        }