예제 #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;
 }
예제 #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();
 }