package fr.upem.android.deadhal.maze;

import java.util.concurrent.ConcurrentHashMap;

public class Maze
{
    private String id;
    private String name;
	private ConcurrentHashMap<String, Room> rooms;
	
	public Maze()
	{
		this.rooms = new ConcurrentHashMap<String, Room>();
	}

	public ConcurrentHashMap<String, Room> getRooms()
	{
	    return this.rooms;
	}

	public Maze setName(String name)
	{
	    this.id    = name;
	    this.name  = name;

	    return this;
	}

	public String getId()
	{
	    return this.id;
	}

	public String getName()
	{
	    return this.name;
	}
}

@@ -568,11 +568,209 @@
 name;%0A%09%7D
+%0A%0A%09public Maze addRoom(Room room)%0A%09%7B%0A%09    this.rooms.putIfAbsent(room.getId(), room);%0A%0A%09    return this;%0A%09%7D%0A%0A%09public Maze removeRoom(Room room)%0A%09%7B%0A%09    this.rooms.remove(room);%0A%0A%09    return this;%0A%09%7D
 %0A%7D%0A

Add addRoom/removeRoom to maze