コード例 #1
0
ファイル: UnitBase.py プロジェクト: webiumsk/WOT-0.9.17-CT
    IN_SEARCH = 8
    DEV_MODE = 16
    IN_ARENA = 32
    SORTIES_FORBIDDEN = 64
    RATED_BATTLE_FORBIDDEN = 128
    IN_PRE_ARENA = 256
    IS_DYNAMIC = 1024
    DEFAULT = 0
    PRE_QUEUE = 0
    PRE_SEARCH = 0
    IN_ROSTER_WAIT = 0
    MODAL_STATES = IN_QUEUE | IN_SEARCH | IN_ARENA
    CHANGED_STATE_ASQ = IN_ARENA | IN_PRE_ARENA | IN_SEARCH | IN_QUEUE


UNIT_STATE_NAMES = buildNamesDict(UNIT_FLAGS)


class UNIT_BROWSER_TYPE:
    NOT_RATED_UNITS = 1
    RATED_CLUBS = 2
    ALL = NOT_RATED_UNITS | RATED_CLUBS


UNIT_BROWSER_TYPE_NAMES = buildNamesDict(UNIT_BROWSER_TYPE)


class UNIT_CREATE_TYPE:
    DEFAULT = 0
    FALLOUT = 1
    SQUAD = 2
コード例 #2
0
ファイル: unitbase.py プロジェクト: Infernux/Projects
class UNIT_STATE:
    LOCKED = 1
    INVITE_ONLY = 2
    IN_QUEUE = 4
    IN_SEARCH = 8
    DEV_MODE = 16
    IN_ARENA = 32
    SORTIE = 64
    FORT_BATTLE = 128
    DEFAULT = 0
    PRE_QUEUE = 0
    PRE_SEARCH = 0
    MODAL_STATES = IN_QUEUE | IN_SEARCH
    CHANGING_TO_ARENA = IN_QUEUE | IN_ARENA

UNIT_STATE_NAMES = buildNamesDict(UNIT_STATE)

class UNIT_ERROR:
    OK = 0
    ALREADY_JOINED_UNIT = 1
    UNIT_MGR_ENTITY_CREATION_FAIL = 2
    UNIT_ADD_FAIL = 3
    CANT_FIND_UNIT_MGR = 4
    ADD_PLAYER_FAIL = 5
    NO_UNIT_MGR = 6
    WRONG_UNIT_REQUISITES = 7
    REMOVE_PLAYER_FAIL = 8
    GET_VEHICLE_FAIL = 9
    ADD_MEMBER_FAIL = 10
    SET_MEMBER_READY_FAIL = 11
    ASSIGN_MEMBER_FAIL = 12
コード例 #3
0
ファイル: unitbase.py プロジェクト: webiumsk/WOT-0.9.12-CT
    IN_SEARCH = 8
    DEV_MODE = 16
    IN_ARENA = 32
    SORTIES_FORBIDDEN = 64
    RATED_BATTLE_FORBIDDEN = 128
    IN_PRE_ARENA = 256
    IN_ROSTER_WAIT = 512
    DEFAULT = 0
    PRE_QUEUE = 0
    PRE_SEARCH = 0
    MODAL_STATES = IN_QUEUE | IN_SEARCH | IN_ARENA
    CHANGING_TO_ARENA = IN_QUEUE | IN_ARENA | IN_PRE_ARENA
    CHANGED_STATE_ASQ = IN_ARENA | IN_PRE_ARENA | IN_SEARCH | IN_QUEUE


UNIT_STATE_NAMES = buildNamesDict(UNIT_FLAGS)

class UNIT_BROWSER_TYPE:
    NOT_RATED_UNITS = 1
    RATED_CLUBS = 2
    ALL = NOT_RATED_UNITS | RATED_CLUBS


UNIT_BROWSER_TYPE_NAMES = buildNamesDict(UNIT_BROWSER_TYPE)

class UNIT_ERROR:
    OK = 0
    ALREADY_JOINED_UNIT = 1
    UNIT_MGR_ENTITY_CREATION_FAIL = 2
    UNIT_ADD_FAIL = 3
    CANT_FIND_UNIT_MGR = 4