-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
enums.py
41 lines (33 loc) · 875 Bytes
/
enums.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Enums for inventory, skills, gamestate and more"""
import enum
import pygame
@enum.unique
class GameState(enum.Enum):
"""Enum for the game's state"""
MAIN_MENU = enum.auto()
IN_GAME = enum.auto()
PAUSE_MENU = enum.auto()
SETTINGS = enum.auto()
@enum.unique
class Gems(enum.Enum):
"""Enum for all gems in the game"""
BLUE = enum.auto()
RED = enum.auto()
PURPLE = enum.auto()
GREEN = enum.auto()
ORANGE = enum.auto()
PINK = enum.auto()
LEMON = enum.auto()
GEAR = enum.auto()
KEY = enum.auto()
@enum.unique
class Skills(enum.Enum):
"""Enum for the skills in the game"""
SWIM = enum.auto()
RUN = enum.auto()
HAMMER = enum.auto()
@enum.unique
class UserEvents(enum.IntEnum):
"""Enum for the custom pygame userevents"""
PAUSE_BLINK = pygame.USEREVENT
SIMON_SAYS_BLINK = enum.auto()