Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
The idea of world_generator reversed for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafSzmidt committed Sep 26, 2017
1 parent dfb3bd9 commit c574164
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion aimmo-game/simulation/custom_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from simulation.pickups import DeliveryPickup
from simulation.world_map import WorldMap
from simulation.world_map import world_map_static_spawn_decorator
from simulation.maps.world_generator import DEFAULT_LEVEL_SETTINGS
from simulation.world_map import DEFAULT_LEVEL_SETTINGS


class BaseGenerator(object):
Expand Down
2 changes: 1 addition & 1 deletion aimmo-game/simulation/map_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from simulation.location import Location
from simulation.world_map import WorldMap
from simulation.world_map import world_map_static_spawn_decorator
from simulation.maps.world_generator import DEFAULT_LEVEL_SETTINGS
from simulation.world_map import DEFAULT_LEVEL_SETTINGS

from simulation.custom_map import BaseGenerator
from simulation.custom_map import BaseLevelGenerator
Expand Down
10 changes: 0 additions & 10 deletions aimmo-game/simulation/maps/world_generator.py

This file was deleted.

11 changes: 10 additions & 1 deletion aimmo-game/simulation/world_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@
from simulation.pickups import ALL_PICKUPS
from simulation.location import Location
from simulation.maps.cell import Cell
from simulation.maps.world_generator import DEFAULT_LEVEL_SETTINGS

LOGGER = getLogger(__name__)


DEFAULT_LEVEL_SETTINGS = {
'TARGET_NUM_CELLS_PER_AVATAR': 0,
'TARGET_NUM_SCORE_LOCATIONS_PER_AVATAR': 0,
'SCORE_DESPAWN_CHANCE': 0,
'TARGET_NUM_PICKUPS_PER_AVATAR': 0,
'PICKUP_SPAWN_CHANCE': 0,
'NO_FOG_OF_WAR_DISTANCE': 1000,
'PARTIAL_FOG_OF_WAR_DISTANCE': 1000,
}

class WorldMap(object):
"""
The non-player world state.
Expand Down

0 comments on commit c574164

Please sign in to comment.