mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-28 22:33:59 -06:00
mechanic: rename; sort imports
This commit is contained in:
+1
-2
@@ -3,10 +3,9 @@ from pathlib import Path
|
|||||||
|
|
||||||
import xdg
|
import xdg
|
||||||
|
|
||||||
from pqcli.game_state import Roster
|
from pqcli.mechanic import Roster
|
||||||
from pqcli.ui import Ui
|
from pqcli.ui import Ui
|
||||||
|
|
||||||
|
|
||||||
SAVE_PATH = Path(xdg.XDG_CONFIG_HOME) / "pqcli" / "save.dat"
|
SAVE_PATH = Path(xdg.XDG_CONFIG_HOME) / "pqcli" / "save.dat"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import random
|
|||||||
import typing as T
|
import typing as T
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from pqcli.config import Stat, PRIME_STATS, Race, Class, RACES, CLASSES
|
from pqcli.config import CLASSES, PRIME_STATS, RACES, Class, Race, Stat
|
||||||
|
|
||||||
|
|
||||||
def generate_name() -> str:
|
def generate_name() -> str:
|
||||||
@@ -2,7 +2,7 @@ import typing as T
|
|||||||
|
|
||||||
import urwid
|
import urwid
|
||||||
|
|
||||||
from pqcli.game_state import Roster
|
from pqcli.mechanic import Roster
|
||||||
from pqcli.ui.exit_view import ExitView
|
from pqcli.ui.exit_view import ExitView
|
||||||
from pqcli.ui.new_game_view import NewGameView
|
from pqcli.ui.new_game_view import NewGameView
|
||||||
from pqcli.ui.roster_view import RosterView
|
from pqcli.ui.roster_view import RosterView
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import typing as T
|
|||||||
|
|
||||||
import urwid
|
import urwid
|
||||||
|
|
||||||
from pqcli.game_state import Roster
|
from pqcli.mechanic import Roster
|
||||||
from pqcli.ui.button import MenuButton
|
from pqcli.ui.button import MenuButton
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import typing as T
|
|||||||
import urwid
|
import urwid
|
||||||
import urwid_readline
|
import urwid_readline
|
||||||
|
|
||||||
from pqcli.game_state import Player, StatsBuilder, generate_name, create_player
|
from pqcli.config import CLASSES, PRIME_STATS, RACES
|
||||||
from pqcli.config import RACES, CLASSES, PRIME_STATS
|
from pqcli.mechanic import Player, StatsBuilder, create_player, generate_name
|
||||||
from pqcli.ui.button import MenuButton
|
from pqcli.ui.button import MenuButton
|
||||||
from pqcli.ui.line_box import LineBox
|
from pqcli.ui.line_box import LineBox
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import typing as T
|
|||||||
|
|
||||||
import urwid
|
import urwid
|
||||||
|
|
||||||
from pqcli.game_state import Roster
|
from pqcli.mechanic import Roster
|
||||||
from pqcli.ui.button import MenuButton
|
from pqcli.ui.button import MenuButton
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user