Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the RoomInstance class.
        /// </summary>
        public RoomInstance()

            : base("RoomInstance", "RoomInstance",
                   "RoomInstance",
                   "Magnetizing_FPG", "Magnetizing_FPG")
        {
            if (entranceIds == null)
            {
                entranceIds = new List <int>();
            }
            RoomName = "Room " + RoomId.ToString();
            RoomId   = maxId++;

            allRoomInstances.Add(this);
            m_attributes = new RoomInstanceAttributes(this);

            // if (m_attributes is RoomInstanceAttributes)
            foreach (RoomInstance room in (m_attributes as RoomInstanceAttributes).targetObjectList)
            {
                (m_attributes as RoomInstanceAttributes).RemoveAdjacence(room as RoomInstance);
            }

            //(m_attributes as RoomInstanceAttributes).targetObjectList.Clear();
            //(m_attributes as RoomInstanceAttributes).writerTargetObjectsListString = new string[0];
        }
Beispiel #2
0
 public override void CreateAttributes()
 {
     m_attributes = new RoomInstanceAttributes(this);
 }