Example #1
0
    def __init__(self):
        """Initializes a Spawner 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._has_been_harvested = False
        self._health = 0
        self._tile = None
        self._type = ""
Example #2
0
    def __init__(self):
        """Initializes a Beaver 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._actions = 0
        self._branches = 0
        self._food = 0
        self._health = 0
        self._job = None
        self._moves = 0
        self._owner = None
        self._recruited = False
        self._tile = None
        self._turns_distracted = 0
Example #3
0
    def __init__(self):
        """Initializes a Job 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._actions = 0
        self._carry_limit = 0
        self._chopping = 0
        self._cost = 0
        self._damage = 0
        self._distraction_power = 0
        self._health = 0
        self._moves = 0
        self._munching = 0
        self._title = ""
Example #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._beavers = []
        self._branches_to_build_lodge = 0
        self._client_type = ""
        self._lodges = []
        self._lost = False
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._won = False
Example #5
0
    def __init__(self):
        """Initializes a Tile 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._beaver = None
        self._branches = 0
        self._flow_direction = ""
        self._food = 0
        self._lodge_owner = None
        self._spawner = None
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._type = ""
        self._x = 0
        self._y = 0