Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 393 Bytes
"""Classes: MovementType."""
from enum import Enum
class MovementType(Enum):
"""Enumerates possible player moves."""
NONE = 0
DOWN = 1
LEFT = 2
RIGHT = 3
ROTATE_CLOCKWISE = 4
ROTATE_ANTICLOCKWISE = 5
def __eq__(self, other):
"""Determine equality with anothe MovementType by comparing MovementType.value."""
return self.value == other.value
You can’t perform that action at this time.