True,
            True,
            True,
            True,
        ]


state = State()

file = open('state.json', 'r', encoding='utf-8')
fleets_data = json.load(file)
state.mission_fleets = fleets_data

# Event
C1 = [139, 127]
EVENT_CHAPTER_ONE = ac.imread('./image/event/EVENT_CHAPTER_ONE.png')

# Device
SCREEN_WIDTH = 750
SUCCESS = 'SUCCESS'
FAIL = 'FAIL'

HOME_START = [567.0, 206.0]

dock = aircv.imread('./image/dock.png')  #船坞
SURPRISE = aircv.imread('./image/SURPRISE.png')

# reitire
CLEAN = [256, 260]  #退役
SIDE_BAR_START = [647, 135]  #退役界面
SIDE_BAR_END = [647, 316]
def update_screen():
    c.screenshot('screen.png')
    global screen
    screen = ac.imread('screen.png')
    state.screen = screen
    return screen
import modules.aircv as aircv
import modules.wda as wda
import modules.aircv as ac

# 驱逐
S_Z46 = ac.imread('./image/ships/standard/S_Z46.png')
FIREFLY = ac.imread('./image/ships/standard/FIREFLY.png')
FLETCHER = ac.imread('./image/ships/standard/FLETCHER.png')
Z23 = ac.imread('./image/ships/standard/Z23.png')
DOWNS = ac.imread('./image/ships/standard/DOWNS.png')
A_BIAOQIANG = ac.imread('./image/ships/standard/A_BIAOQIANG.png')
A_RAFI = ac.imread('./image/ships/standard/A_RAFI.png')

# 轻巡
S_BELFAST = ac.imread('./image/ships/standard/S_BELFAST.png')
CLEVELAND = ac.imread('./image/ships/standard/CLEVELAND.png')
HELENA = ac.imread('./image/ships/standard/HELENA.png')
SANDIEGO = ac.imread('./image/ships/standard/SANDIEGO.png')

# 重巡
A_INDIANAPOLIS = ac.imread('./image/ships/standard/A_INDIANAPOLIS.png')
HOUSTON = ac.imread('./image/ships/standard/HOUSTON.png')
YORK = ac.imread('./image/ships/standard/YORK.png')
NORFOLK = ac.imread('./image/ships/standard/NORFOLK.png')
S_QUAN = ac.imread('./image/ships/standard/S_QUAN.png')
S_EUGEN = ac.imread('./image/ships/standard/S_EUGEN.png')
S_AO = ac.imread('./image/ships/standard/S_AO.png')

# 轻航
A_UNICORN = ac.imread('./image/ships/standard/A_UNICORN.png')
EDINBURGH = ac.imread('./image/ships/standard/EDINBURGH.png')
Beispiel #4
0
from constants import *
from tools import *
import modules.aircv as ac
from ships import *

EVENT_LIST = ac.imread('./image/event/EVENT_LIST.png')

# 每日活动
DAY_EVENT = [413, 351]  # 每日 chapter界面中

ENTER_DAY_EVENT = [333.0, 270.0]  # 通用进入

CHOOSE_DAY_BOOK = [193.0, 255.0]
CHOOSE_DAY_CHIP = [333.0, 270.0]
CHOOSE_DAY_BOX = [488.0, 273.0]
CHOOSE_DAY_GADGET = [85.0, 252.0]

# 战术研修
CHIP_MODE_MINE = [338.0, 252.0]
CHIP_MODE_FIRE = [336.0, 180.0]
CHIP_MODE_FLY = [306.0, 108.0]

# 斩首行动
BOX_MODE = [256.0, 272.0]

# 海域突进
BOOK_MODE = [256.0, 272.0]

# 商船护送
GADGET_MODE = [256.0, 272.0]
Beispiel #5
0
import modules.aircv as aircv
import modules.wda as wda
import modules.aircv as ac

from constants import *
from tools import *
from mission import *
from battle import *
from day import *
from ships import *

HOME_SIDE_BAR = [9.0, 202.0]
MISSION_COMPLETE = aircv.imread('./image/home/MISSION_COMPLETE.png')
COIN = aircv.imread('./image/home/COIN.png')
GASOLIN = aircv.imread('./image/home/GASOLIN.png')
MISSION_EMPTY = aircv.imread('./image/home/MISSION_EMPTY.png')
HOME_CONTINUE = [133.0, 52.0]


def find_all_surprise(screen):
    data = find_all(SURPRISE, screen, 0.95)
    results = []
    for entity in data:
        x = entity[0]
        y = entity[1] + 30
        temp = [x, y]
        results.append(temp)
    return results


def start_loop():