예제 #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
예제 #2
0
파일: spider.py 프로젝트: Shwam/Joueur.py
    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
예제 #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
예제 #4
0
파일: nest.py 프로젝트: Shwam/Joueur.py
    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
예제 #5
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
예제 #6
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
예제 #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