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