예제 #1
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._corpses = 0
        self._is_castle = False
        self._is_gold_mine = False
        self._is_grass = False
        self._is_island_gold_mine = False
        self._is_path = False
        self._is_river = False
        self._is_tower = False
        self._is_unit_spawn = False
        self._is_wall = False
        self._is_worker_spawn = False
        self._num_ghouls = 0
        self._num_hounds = 0
        self._num_zombies = 0
        self._owner = None
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._tower = None
        self._unit = None
        self._x = 0
        self._y = 0
예제 #2
0
파일: unit.py 프로젝트: Lgbktb/NecroWar
    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._health = 0
        self._job = None
        self._moves = 0
        self._owner = None
        self._tile = None
예제 #3
0
    def __init__(self):
        """Initializes a uJob 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._damage = 0
        self._gold_cost = 0
        self._health = 0
        self._mana_cost = 0
        self._moves = 0
        self._per_tile = 0
        self._range = 0
        self._title = ""
예제 #4
0
    def __init__(self):
        """Initializes a TowerJob 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._all_units = False
        self._damage = 0
        self._gold_cost = 0
        self._health = 0
        self._mana_cost = 0
        self._range = 0
        self._title = ""
        self._turns_between_attacks = 0
예제 #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._client_type = ""
        self._gold = 0
        self._health = 0
        self._home_base = []
        self._lost = False
        self._mana = 0
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._side = []
        self._time_remaining = 0
        self._towers = []
        self._units = []
        self._won = False