示例#1
0
        protected Pen Pen; // background color

        #endregion Fields

        #region Constructors

        public Tile(int row, int column, Room room, Tile parent = null)
        {
            Room = room;
            Identity = room.Area.Name + ":" + room.Name;
            Root = parent;

            InitializeComponent();
            SetColor();
        }
示例#2
0
 public void Remove(Tile tile)
 {
     Children.Remove(tile);
 }
示例#3
0
 public void Add(Tile tile)
 {
     Children.Add(tile);
 }