コード例 #1
0
ファイル: checker.py プロジェクト: Shwam/Joueur.py
    def __init__(self):
        """Initializes a Checker with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._kinged = False
        self._owner = None
        self._x = 0
        self._y = 0
コード例 #2
0
ファイル: checker.py プロジェクト: Tarnasa/Joueur.py.stardash
    def __init__(self):
        """Initializes a Checker with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._kinged = False
        self._owner = None
        self._x = 0
        self._y = 0
コード例 #3
0
ファイル: player.py プロジェクト: epicpants/Joueur.py
    def __init__(self):
        """ initializes a Player with basic logic as provided by the Creer code generator
        """
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._checkers = []
        self._client_type = ""
        self._lost = False
        self._name = "Anonymous"
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False
        self._y_direction = 0
コード例 #4
0
    def __init__(self):
        """Initializes a Player with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._checkers = []
        self._client_type = ""
        self._lost = False
        self._name = "Anonymous"
        self._other_player = None
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False
        self._y_direction = 0