public void ProcessObject(List <List <Object> > matrix) { MazeFinish f = new MazeFinish(16 * finish.Item1, finish.Item2); for (int i = 0; i < checkpoints.Count; i++) { MazeCheckpoint c = new MazeCheckpoint(16 * checkpoints[i].Item1, 16 * checkpoints[i].Item2, checkpoints[i].Item3); f.AddCheckpoint(c); matrix[checkpoints[i].Item1].Add(c); } matrix[finish.Item1].Add(f); }
public void AddCheckpoint(MazeCheckpoint c) { checkpoints.Add(c); }