コード例 #1
0
ファイル: ScoringTables.cs プロジェクト: xiangnanyue/DDD
        public ScoringLocationType(pScoringLocationType s)
        {
            for (int i = 0; i < s.Zone.Count; i++)
            {
                this.zone.Add(s.Zone[i]);
            }

            if ("Anywhere" == s.Zone[0])
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.Anywhere;
            }
            else if (("InZone" == s.Relationship) || ("" == s.Relationship))
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.InZone;
            }
            else if ("NotInZone" == s.Relationship)
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.NotInZone;
            }

            else
            {
                throw new ApplicationException("Unknown scoring region relationship: " + s.Relationship);
            }
        }
コード例 #2
0
ファイル: ScoringTables.cs プロジェクト: wshanshan/DDD
        public ScoringLocationType(pScoringLocationType s)
        {
            for (int i = 0; i < s.Zone.Count; i++) this.zone.Add(s.Zone[i]);

            if ("Anywhere" == s.Zone[0])
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.Anywhere;
            }
            else if (("InZone" == s.Relationship)||(""==s.Relationship))
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.InZone;
            }
            else if ("NotInZone" == s.Relationship)
            {
                this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.NotInZone;
            }
      
            else
            {
                throw new ApplicationException("Unknown scoring region relationship: " + s.Relationship);
            }
        }
コード例 #3
0
ファイル: ScoringTables.cs プロジェクト: xiangnanyue/DDD
 public ScoringLocationType(List <string> zone, ScoringDB.ActorInfo.LocationInfo.LocationType relationship)
 {
     this.zone         = zone;
     this.relationship = relationship;
 }
コード例 #4
0
ファイル: ScoringTables.cs プロジェクト: wshanshan/DDD
 public ScoringLocationType(List<string> zone, ScoringDB.ActorInfo.LocationInfo.LocationType relationship)
 {
     this.zone = zone;
     this.relationship = relationship;
 }