Esempio n. 1
0
 public void Load(Filer type)
 {
     this.x    = type.rdDouble(1);
     this.y    = type.rdDouble(2);
     this.r    = type.rdInt(3);
     this.name = type.rdString(4);
 }
Esempio n. 2
0
 public void Load(Filer type)
 {
     this.x1   = type.rdDouble(1);
     this.y1   = type.rdDouble(2);
     this.x2   = type.rdDouble(3);
     this.y2   = type.rdDouble(4);
     this.name = type.rdString(5);
 }
Esempio n. 3
0
        ArrayList loadFile(Filer filer)
        {
            Program   pr  = new Program();
            ArrayList arr = new ArrayList();

            while (filer.eof())
            {
                int   header = filer.rdInt(0);
                Shape s      = pr.ChoiseType(header);
                s.Load(filer);
                arr.Add(s);
            }
            return(arr);
        }