53 lines
1.4 KiB
Python
53 lines
1.4 KiB
Python
|
|
"""
|
|||
|
|
KARDS 战斗系统
|
|||
|
|
一个基于Python的KARDS游戏战斗系统实现
|
|||
|
|
|
|||
|
|
主要模块:
|
|||
|
|
- core: 核心系统(引擎、枚举等)
|
|||
|
|
- units: 单位系统
|
|||
|
|
- battlefield: 战场系统
|
|||
|
|
- abilities: 能力系统
|
|||
|
|
- effects: 效果系统
|
|||
|
|
- events: 事件系统
|
|||
|
|
- cards: 卡牌系统
|
|||
|
|
- game: 游戏引擎
|
|||
|
|
"""
|
|||
|
|
|
|||
|
|
# 核心战斗系统
|
|||
|
|
from .core.battle_engine import BattleEngine
|
|||
|
|
from .core.enums import UnitType, LineType, GamePhase, Nation, Rarity, CardType
|
|||
|
|
from .units.unit import Unit, UnitStats
|
|||
|
|
from .units.unit_loader import load_unit
|
|||
|
|
from .battlefield.battlefield import Battlefield, BattleLine, HQ
|
|||
|
|
|
|||
|
|
# 卡牌系统
|
|||
|
|
from .cards.card import BaseCard, UnitCard, OrderCard, CounterCard
|
|||
|
|
from .cards.deck import Deck, DeckBuilder
|
|||
|
|
from .cards.card_manager import CardManager
|
|||
|
|
|
|||
|
|
# 游戏引擎
|
|||
|
|
from .game.game_engine import GameEngine
|
|||
|
|
from .game.game_state import GameState
|
|||
|
|
from .game.nation_config import NationConfig
|
|||
|
|
|
|||
|
|
__version__ = "0.2.0"
|
|||
|
|
__author__ = "KARDS Battle System Developer"
|
|||
|
|
|
|||
|
|
__all__ = [
|
|||
|
|
# 核心战斗系统
|
|||
|
|
'BattleEngine',
|
|||
|
|
'UnitType', 'LineType', 'GamePhase', 'Nation', 'Rarity', 'CardType',
|
|||
|
|
'Unit', 'UnitStats',
|
|||
|
|
'load_unit',
|
|||
|
|
'Battlefield', 'BattleLine', 'HQ',
|
|||
|
|
|
|||
|
|
# 卡牌系统
|
|||
|
|
'BaseCard', 'UnitCard', 'OrderCard', 'CounterCard',
|
|||
|
|
'Deck', 'DeckBuilder',
|
|||
|
|
'CardManager',
|
|||
|
|
|
|||
|
|
# 游戏引擎
|
|||
|
|
'GameEngine',
|
|||
|
|
'GameState',
|
|||
|
|
'NationConfig'
|
|||
|
|
]
|