Beispiel #1
0
 public MeetingRoom(string lession, StuffTeacher teacher, StuffStudent student)
 {
     // TODO: Complete member initialization
     this._Lession = lession;
     this._Teacher = teacher;
     this._Student = student;
 }
Beispiel #2
0
 internal void Leave(StuffStudent student)
 {
     _Done = student.Name == _Student.Name;
 }
Beispiel #3
0
        /// <summary>
        /// 設定功能
        /// </summary>
        /// <param name="abilitys">現有功能Dict</param>
        protected override void _SetAbility(Entity.AbilitySet abilitys)
        {
            _ObservedAbility = new PlayerObservedAbility(this, _DBActorInfomation);
            abilitys.AttechAbility<IObservedAbility>(_ObservedAbility);

            _ObserveAbility = new PlayerObserveAbility( _DBActorInfomation);
            abilitys.AttechAbility<IObserveAbility>(_ObserveAbility);

            _CrossAbility = new CrossAbility();
            abilitys.AttechAbility<ICrossAbility>(_CrossAbility);

            if(_DBActorInfomation.Property.Identity == Serializable.EntityPropertyInfomation.IDENTITY.CONVERSATION)
            {
                _TeacherAbility = new Session.StuffTeacher(this);
                abilitys.AttechAbility<Session.StuffTeacher>(_TeacherAbility);
            }

            _StudentAbility = new Session.StuffStudent(this);
            abilitys.AttechAbility<Session.StuffStudent>(_StudentAbility);

            base._SetAbility(abilitys);
        }
Beispiel #4
0
 internal void Leave(StuffStudent student)
 {
     _Students.Remove(student);
     _RoomClose(_Rooms.Objects , student);
 }
Beispiel #5
0
 internal void Join(StuffStudent student)
 {
     _Students.Add(student);
 }
Beispiel #6
0
 private void _RoomClose(MeetingRoom[] meetingrooms, StuffStudent student)
 {
     foreach (var room in meetingrooms)
     {
         room.Leave(student);
     }
 }
Beispiel #7
0
 private void _CreateRoom(string lession, StuffTeacher teacher, StuffStudent student)
 {
     var meeting = new MeetingRoom(lession, teacher, student);
     _Rooms.Add(meeting);
 }