Exemple #1
0
    def __init__(self):
        """Initializes a Spider 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._is_dead = False
        self._nest = None
        self._owner = None
Exemple #2
0
    def __init__(self):
        """Initializes a Spider 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._is_dead = False
        self._nest = None
        self._owner = None
Exemple #3
0
    def __init__(self):
        """Initializes a Nest 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._spiders = []
        self._webs = []
        self._x = 0
        self._y = 0
Exemple #4
0
    def __init__(self):
        """Initializes a Nest 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._spiders = []
        self._webs = []
        self._x = 0
        self._y = 0
    def __init__(self):
        """Initializes a Web 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._length = 0
        self._load = 0
        self._nest_a = None
        self._nest_b = None
        self._spiderlings = []
        self._strength = 0
    def __init__(self):
        """Initializes a Web 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._length = 0
        self._load = 0
        self._nest_a = None
        self._nest_b = None
        self._spiderlings = []
        self._strength = 0
Exemple #7
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._brood_mother = None
        self._client_type = ""
        self._lost = False
        self._max_spiderlings = 0
        self._name = "Anonymous"
        self._other_player = None
        self._reason_lost = ""
        self._reason_won = ""
        self._spiders = []
        self._time_remaining = 0
        self._won = False
    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._brood_mother = None
        self._client_type = ""
        self._lost = False
        self._max_spiderlings = 0
        self._name = "Anonymous"
        self._other_player = None
        self._reason_lost = ""
        self._reason_won = ""
        self._spiders = []
        self._time_remaining = 0
        self._won = False