コード例 #1
0
ファイル: WeaponAbility.cs プロジェクト: FoeFear/shellcore
 public bool CheckCategoryCompatibility(Entity.TerrainType terrain, Entity.EntityCategory category)
 {
     if (type == WeaponDiversityType.Torpedo)
     {
         return(terrain == Entity.TerrainType.Ground);
     }
     else
     {
         return(TerrainCheck(terrain) &&
                CategoryCheck(category));
     }
 }
コード例 #2
0
 public void SetCategory(Entity.EntityCategory category)
 {
     this.category = category;
 }
コード例 #3
0
ファイル: WeaponAbility.cs プロジェクト: FoeFear/shellcore
 public bool CategoryCheck(Entity.EntityCategory targetCategory)
 {
     return(this.category == Entity.EntityCategory.All || this.category == targetCategory);
 }