Пример #1
0
 def get_trees():
     gather_wood = Action.get_gather_wood_action()
     gather_food = Action.get_gather_food_action()
     hunt = Action.get_hunt_action()
     actions = [gather_wood, gather_food, hunt]
     wood = resource.Wood.create(count=2)
     wood2 = resource.Wood.create(count=10000)
     return Trees(name="Trees", type="Base", production=[wood],
                  resources_available=[wood2], actions=actions)
Пример #2
0
 def get_trees_sparse():
     gather_wood = Action.get_gather_wood_action()
     gather_food = Action.get_gather_food_action()
     actions = [gather_wood, gather_food]
     wood = resource.Wood.create(count=1)
     wood2 = resource.Wood.create(count=1000)
     food = resource.Food.create(count=2)
     food2 = resource.Food.create(count=20000)
     return Trees(name="Sparse Trees", type="Base", production=[wood, food],
                  resources_available=[wood2, food2], actions=actions)