public function valid()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->validX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->validY();
        } else {
            return $this->validXY();
        }
    }
public function valid()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->validX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->validY();
        } else {
            return $this->validXY();
        }
    }
public function valid ( ) { if ( $ this -> getWalkFlag ( ) & self :: WALK_X ) { return $ this -> validX ( ) ; } elseif ( $ this -> getWalkFlag ( ) & self :: WALK_Y ) { return $ this -> validY ( ) ; } else { return $ this -> validXY ( ) ; } }
Test if current value is valid according to matrix's flag value

@return  bool
@see     self::validX()
@see     self::validY()
@see     self::validXY()
Test if current value is valid according to matrix s flag value