Esempio n. 1
0
 private bool HasSameProperties(
     float r,
     bool useSraightLineDist,
     BoardSquare.VisibilityFlags f,
     BrushRevealType brushRevealType,
     bool ignoreLos,
     bool canFunctionInGlobalBlind)
 {
     if (m_flag == f && m_brushRevealType == brushRevealType &&
         (m_ignoreLos == ignoreLos && m_canFunctionInGlobalBlind == canFunctionInGlobalBlind) &&
         m_radiusAsStraightLineDist == useSraightLineDist)
     {
         return(Mathf.Abs(m_radius - r) < 0.0500000007450581);
     }
     return(false);
 }
Esempio n. 2
0
 public bool IsEqual(
     int actorIdx,
     float r,
     bool useSraightLineDist,
     BrushRevealType brushRevealType,
     bool ignoreLos,
     BoardSquare.VisibilityFlags f,
     bool canFunctionInGlobalBlind)
 {
     if (m_actorIndex == actorIdx && m_satelliteIndex == -1)
     {
         return(HasSameProperties(r, useSraightLineDist, f, brushRevealType, ignoreLos,
                                  canFunctionInGlobalBlind));
     }
     return(false);
 }
Esempio n. 3
0
 public bool IsEqual(
     GridPos gridPos,
     float r,
     bool useSraightLineDist,
     BrushRevealType brushRevealType,
     bool ignoreLos,
     BoardSquare.VisibilityFlags f,
     bool canFunctionInGlobalBlind)
 {
     if (m_actorIndex == ActorData.s_invalidActorIndex && m_boardX == gridPos.X &&
         m_boardY == gridPos.Y)
     {
         return(HasSameProperties(r, useSraightLineDist, f, brushRevealType, ignoreLos,
                                  canFunctionInGlobalBlind));
     }
     return(false);
 }
Esempio n. 4
0
 public VisionProviderInfo(
     int actorIdx,
     float r,
     bool radiusAsStraightLineDist,
     BrushRevealType brushRevealType,
     bool ignoreLos,
     bool canFunctionInGlobalBlind,
     BoardSquare.VisibilityFlags f = BoardSquare.VisibilityFlags.Team)
 {
     m_actorIndex               = actorIdx;
     m_satelliteIndex           = -1;
     m_boardX                   = -1;
     m_boardY                   = -1;
     m_radius                   = r;
     m_radiusAsStraightLineDist = radiusAsStraightLineDist;
     m_flag                     = f;
     m_brushRevealType          = brushRevealType;
     m_ignoreLos                = ignoreLos;
     m_canFunctionInGlobalBlind = canFunctionInGlobalBlind;
 }