예제 #1
0
파일: Team.cs 프로젝트: zukoj/SOEN490-ETD
        //Associating the team to GPS locations
        public void setGPSLocation(GPSLocation gpsLocation)
        {
            if (gpsLocation != null)
            {
                this.gpsLocation = gpsLocation;
            }
            else
            {
                this.gpsLocation = null;
            }

            ClassModifiedNotification(typeof(Team)); //Called so that the TeamPin registers interest in the GPSLocation upon creation
        }
예제 #2
0
파일: Team.cs 프로젝트: zukoj/SOEN490-ETD
        //Create a duplicate team
        public Team(Team team)
        {
            this.name = team.name;
            this.interventionCount      = team.interventionCount;
            this.highestLevelOfTraining = team.highestLevelOfTraining;
            this.memberList             = team.memberList;
            this.equipmentList          = team.equipmentList;
            this.teamID      = team.teamID;
            this.operationID = team.operationID;
            this.status      = team.status;
            this.gpsLocation = team.gpsLocation;

            status = Statuses.moving;
            if (Operation.currentOperation != null)
            {
                this.operationID = Operation.currentOperation.getID();
            }
            splitTeamList.Add(this);

            ClassModifiedNotification(typeof(Team));
        }