Esempio n. 1
0
 public RoomMemento(string name, int id, int size, PictureMemento image, WalkBoxesMemento wb)
 {
     roomName  = String.Copy(name);
     roomSize  = size;
     roomID    = id;
     roomImage = image;
     walkBoxes = wb;
 }
Esempio n. 2
0
 public void RestoreCheckpoint(WalkBoxesMemento m)
 {
     walkBoxes.Clear(); wbProperties.Clear();
     for (int i = 0; i < m.walkBoxes.Count(); i++)
     {
         walkBoxes.Add(m.walkBoxes[i]);
         wbProperties.Add(m.wbProperties[i]);
     }
     // CreateWalkMatrix();
 }