def __init__(self):
        """Initializes a Structure 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._effect_radius = 0
        self._materials = 0
        self._owner = None
        self._tile = None
        self._type = ""
Beispiel #2
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._action_cost = 0
        self._carry_limit = 0
        self._moves = 0
        self._regen_rate = 0
        self._title = ""
        self._upkeep = 0
Beispiel #3
0
    def __init__(self):
        """Initializes a Unit 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._acted = False
        self._energy = 0
        self._food = 0
        self._job = None
        self._materials = 0
        self._movement_target = None
        self._moves = 0
        self._owner = None
        self._squad = []
        self._starving = False
        self._tile = None
        self._turns_to_die = 0
Beispiel #4
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._food = 0
        self._harvest_rate = 0
        self._materials = 0
        self._structure = None
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._turns_to_harvest = 0
        self._unit = None
        self._x = 0
        self._y = 0
Beispiel #5
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._cat = None
        self._client_type = ""
        self._food = 0
        self._lost = False
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._structures = []
        self._time_remaining = 0
        self._units = []
        self._upkeep = 0
        self._won = False