示例#1
0
    def __init__(self):
        """Initializes a Bomb 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._tile = None
        self._timer = 5
示例#2
0
    def __init__(self):
        """Initializes a Upgrade 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._cargo_capacity = 0
        self._health = 0
        self._mining_power = 0
        self._moves = 0
        self._title = ""
示例#3
0
    def __init__(self):
        """Initializes a Miner 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._bombs = 0
        self._building_materials = 0
        self._current_upgrade = None
        self._dirt = 0
        self._health = 0
        self._mining_power = 0
        self._moves = 0
        self._ore = 0
        self._owner = None
        self._tile = None
        self._upgrade_level = 0
示例#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._base_tile = None
        self._bombs = []
        self._client_type = ""
        self._hopper_tiles = []
        self._lost = False
        self._miners = []
        self._money = 0
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._value = 0
        self._won = False
示例#5
0
文件: tile.py 项目: trjrhb/Joueur.py
    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._bombs = []
        self._dirt = 0
        self._is_base = False
        self._is_falling = False
        self._is_hopper = False
        self._is_ladder = False
        self._is_support = False
        self._miners = []
        self._ore = 0
        self._owner = None
        self._shielding = 0
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._x = 0
        self._y = 0