from tanxees.utils.Comparer import ComparerMixin

class Direction(ComparerMixin):
    COMPARE_ATTRS = ('angle')
    
    RIGHT = 0
    DOWN = 90
    LEFT = 180
    UP = 270

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle

    @property
    def angle(self):
        return self.__angle

fcab8a8eed05f164d5f34a60a33f75729b6a355a
<mask token>


class Direction(ComparerMixin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle
    <mask token>

<mask token>


class Direction(ComparerMixin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle

    @property
    def angle(self):
        return self.__angle

<mask token>


class Direction(ComparerMixin):
    COMPARE_ATTRS = 'angle'
    RIGHT = 0
    DOWN = 90
    LEFT = 180
    UP = 270

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle

    @property
    def angle(self):
        return self.__angle

from tanxees.utils.Comparer import ComparerMixin


class Direction(ComparerMixin):
    COMPARE_ATTRS = 'angle'
    RIGHT = 0
    DOWN = 90
    LEFT = 180
    UP = 270

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle

    @property
    def angle(self):
        return self.__angle

from tanxees.utils.Comparer import ComparerMixin

class Direction(ComparerMixin):
    COMPARE_ATTRS = ('angle')
    
    RIGHT = 0
    DOWN = 90
    LEFT = 180
    UP = 270

    def __init__(self, angle):
        if angle not in (self.RIGHT, self.DOWN, self.LEFT, self.UP):
            raise ValueError('Unexpected angle value: %s' % angle)
        self.__angle = angle

    @property
    def angle(self):
        return self.__angle
