Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
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._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False
        self._y_direction = 0
Esempio n. 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