float Position::GetDistance(Position const& pos) const { return (GetPhaseMask() & pos.GetPhaseMask()) ? ((Location)*this).GetDistance((Location)pos) : MAX_VISIBILITY_DISTANCE + 1.0f; };
bool Position::operator == (Position const& pos) const { return (((Location)*this) == ((Location)pos)) && (GetPhaseMask() & pos.GetPhaseMask()); };