public RoomMemento(string name, int id, int size, PictureMemento image, WalkBoxesMemento wb) { roomName = String.Copy(name); roomSize = size; roomID = id; roomImage = image; walkBoxes = wb; }
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(); }