Esempio n. 1
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._cut_speed = 0
        self._eggs_scalar = 0
        self._game_objects = {}
        self._initial_web_strength = 0
        self._max_turns = 100
        self._movement_speed = 0
        self._nests = []
        self._players = []
        self._session = ""
        self._spit_speed = 0
        self._weave_power = 0
        self._weave_speed = 0
        self._webs = []

        self.name = "Spiders"

        self._game_object_classes = {
            'BroodMother': BroodMother,
            'Cutter': Cutter,
            'GameObject': GameObject,
            'Nest': Nest,
            'Player': Player,
            'Spider': Spider,
            'Spiderling': Spiderling,
            'Spitter': Spitter,
            'Weaver': Weaver,
            'Web': Web
        }
Esempio n. 2
0
    def __init__(self):
        """ initializes a Game with basic logic as provided by the Creer code generator
        """
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._base_bribes_per_turn = 0
        self._buildings = []
        self._current_forecast = None
        self._current_player = None
        self._current_turn = 0
        self._forecasts = []
        self._game_objects = {}
        self._map_height = 0
        self._map_width = 0
        self._max_fire = 0
        self._max_forecast_intensity = 0
        self._max_turns = 100
        self._next_forecast = None
        self._players = []
        self._session = ""

        self.name = "Anarchy"

        self._game_object_classes = {
            'PoliceDepartment': PoliceDepartment,
            'WeatherStation': WeatherStation,
            'Building': Building,
            'Warehouse': Warehouse,
            'Player': Player,
            'Forecast': Forecast,
            'GameObject': GameObject,
            'FireDepartment': FireDepartment
        }
Esempio n. 3
0
    def __init__(self):
        """ initializes a Game with basic logic as provided by the Creer code generator
        """
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._board_height = 8
        self._board_width = 8
        self._checker_moved = None
        self._checker_moved_jumped = False
        self._checkers = []
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._max_turns = 100
        self._players = []
        self._session = ""

        self.name = "Checkers"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Checker': Checker,
            'Player': Player
        }
Esempio n. 4
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._max_turns = 100
        self._moves = []
        self._pieces = []
        self._players = []
        self._session = ""
        self._turns_to_draw = 0
        self.board = {"a": [0 for x in range(9)], "b": [0 for x in range(9)], "c": [0 for x in range(9)],
                      "d": [0 for x in range(9)], "e": [0 for x in range(9)], "f": [0 for x in range(9)],
                      "g": [0 for x in range(9)], "h": [0 for x in range(9)]}

        self.name = "Chess"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Move': Move,
            'Piece': Piece,
            'Player': Player
        }
Esempio n. 5
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._bury_interest_rate = 0
        self._crew_cost = 0
        self._crew_damage = 0
        self._crew_health = 0
        self._crew_moves = 0
        self._crew_range = 0
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._heal_factor = 0
        self._map_height = 0
        self._map_width = 0
        self._max_turns = 100
        self._merchant_gold_rate = 0
        self._merchant_interest_rate = 0
        self._min_interest_distance = 0
        self._players = []
        self._ports = []
        self._rest_range = 0
        self._session = ""
        self._ship_cost = 0
        self._ship_damage = 0
        self._ship_health = 0
        self._ship_moves = 0
        self._ship_range = 0
        self._tiles = []
        self._units = []

        self.name = "Pirates"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Player': Player,
            'Port': Port,
            'Tile': Tile,
            'Unit': Unit
        }
Esempio n. 6
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._big_blob_speed = 0
        self._blob_cost_exponent = 0
        self._blob_cost_multiplier = 0
        self._blobmasters = []
        self._blobs = []
        self._bonus_slime_for_fewer_blobs = 0
        self._current_player = None
        self._current_turn = 0
        self._death_slime = 0
        self._game_objects = {}
        self._map_height = 0
        self._map_width = 0
        self._max_drops_per_turn = 0
        self._max_player_slime = 0
        self._max_slime_spawned_on_tile = 0
        self._max_starting_walls = 0
        self._max_turns = 100
        self._min_starting_walls = 0
        self._per_tile_drop_delay = 0
        self._players = []
        self._points_to_win = 0
        self._session = ""
        self._slime_spawn_rate = 0
        self._small_blob_speed = 0
        self._tiles = []
        self._tiles_covered_to_win = 0
        self._time_added_per_turn = 0

        self.name = "Blobmaster"

        self._game_object_classes = {
            'Blob': Blob,
            'GameObject': GameObject,
            'Player': Player,
            'Tile': Tile
        }
Esempio n. 7
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._cat_energy_mult = 0
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._harvest_cooldown = 0
        self._jobs = []
        self._lower_harvest_amount = 0
        self._map_height = 0
        self._map_width = 0
        self._max_turns = 100
        self._monument_cost_mult = 0
        self._monument_materials = 0
        self._neutral_materials = 0
        self._players = []
        self._session = ""
        self._shelter_materials = 0
        self._starving_energy_mult = 0
        self._structures = []
        self._tiles = []
        self._turns_between_harvests = 0
        self._turns_to_create_human = 0
        self._turns_to_lower_harvest = 0
        self._units = []
        self._wall_materials = 0

        self.name = "Catastrophe"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Job': Job,
            'Player': Player,
            'Structure': Structure,
            'Tile': Tile,
            'Unit': Unit
        }
Esempio n. 8
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator.
        """
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._intern_cap = 0
        self._jobs = []
        self._machines = []
        self._manager_cap = 0
        self._map_height = 0
        self._map_width = 0
        self._material_spawn = 0
        self._max_turns = 100
        self._physicist_cap = 0
        self._players = []
        self._refined_value = 0
        self._regenerate_rate = 0
        self._session = ""
        self._spawn_time = 0
        self._stun_time = 0
        self._tiles = []
        self._time_added_per_turn = 0
        self._time_immune = 0
        self._units = []
        self._victory_amount = 0

        self.name = "Newtonian"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Job': Job,
            'Machine': Machine,
            'Player': Player,
            'Tile': Tile,
            'Unit': Unit
        }
Esempio n. 9
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator.
        """
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._bartender_cooldown = 0
        self._bottles = []
        self._brawler_damage = 0
        self._cowboys = []
        self._current_player = None
        self._current_turn = 0
        self._furnishings = []
        self._game_objects = {}
        self._jobs = []
        self._map_height = 0
        self._map_width = 0
        self._max_cowboys_per_job = 0
        self._max_turns = 100
        self._players = []
        self._rowdiness_to_siesta = 0
        self._session = ""
        self._sharpshooter_damage = 0
        self._siesta_length = 0
        self._tiles = []
        self._time_added_per_turn = 0
        self._turns_drunk = 0

        self.name = "Saloon"

        self._game_object_classes = {
            'Bottle': Bottle,
            'Cowboy': Cowboy,
            'Furnishing': Furnishing,
            'GameObject': GameObject,
            'Player': Player,
            'Tile': Tile,
            'YoungGun': YoungGun
        }
Esempio n. 10
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._max_turns = 100
        self._moves = []
        self._pieces = []
        self._players = []
        self._session = ""
        self._turns_to_draw = 0

        self.name = "Chess"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Move': Move,
            'Piece': Piece,
            'Player': Player
        }
Esempio n. 11
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._cut_speed = 0
        self._eggs_scalar = 0
        self._game_objects = {}
        self._initial_web_strength = 0
        self._max_turns = 100
        self._max_web_strength = 0
        self._movement_speed = 0
        self._nests = []
        self._players = []
        self._session = ""
        self._spit_speed = 0
        self._time_added_per_turn = 0
        self._weave_power = 0
        self._weave_speed = 0
        self._webs = []

        self.name = "Spiders"

        self._game_object_classes = {
            'BroodMother': BroodMother,
            'Cutter': Cutter,
            'GameObject': GameObject,
            'Nest': Nest,
            'Player': Player,
            'Spider': Spider,
            'Spiderling': Spiderling,
            'Spitter': Spitter,
            'Weaver': Weaver,
            'Web': Web
        }
Esempio n. 12
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator.
        """
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._gold_income_per_unit = 0
        self._island_income_per_unit = 0
        self._mana_income_per_unit = 0
        self._map_height = 0
        self._map_width = 0
        self._max_turns = 100
        self._players = []
        self._river_phase = 0
        self._session = ""
        self._tiles = []
        self._time_added_per_turn = 0
        self._tower_jobs = []
        self._towers = []
        self._unit_jobs = []
        self._units = []

        self.name = "Necrowar"

        self._game_object_classes = {
            'GameObject': GameObject,
            'Player': Player,
            'Tile': Tile,
            'Tower': Tower,
            'TowerJob': TowerJob,
            'Unit': Unit,
            'UnitJob': UnitJob
        }
Esempio n. 13
0
    def __init__(self):
        """Initializes a Game with basic logic as provided by the Creer code generator."""
        BaseGame.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._board_height = 8
        self._board_width = 8
        self._checker_moved = None
        self._checker_moved_jumped = False
        self._checkers = []
        self._current_player = None
        self._current_turn = 0
        self._game_objects = {}
        self._max_turns = 100
        self._players = []
        self._session = ""

        self.name = "Checkers"

        self._game_object_classes = {
            'Checker': Checker,
            'GameObject': GameObject,
            'Player': Player
        }