Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ResourcesAI.py #580

Merged
merged 19 commits into from
May 12, 2016
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bc55b40
Refactor set_planet_research_foci calling 5 new function calls
LGM-Doyle Mar 25, 2016
dc85453
Refactor set_planet_industry_and_foci
LGM-Doyle Mar 25, 2016
0e8bd8b
Fix overly indented code in set_planet_industry_and_foci.
LGM-Doyle Apr 2, 2016
8f7a0be
Move setting newFoci out of print report section of code
LGM-Doyle Mar 28, 2016
ec45191
Refactor. Restyle several ResourcesAI.py scope variables to lower_cas…
LGM-Doyle Mar 29, 2016
8bc5c8d
Created PlanetFocusManager in ResourcesAI.py
LGM-Doyle Mar 29, 2016
61f15a6
In ResearchAI.py created a focus_manager.set_future_focus function
LGM-Doyle Mar 29, 2016
df4c1ba
Made ResourcesAI.py use focus information objects
LGM-Doyle Mar 30, 2016
9fc7ce5
Created ResourcesAI.Reporter object to handle reporting
LGM-Doyle Mar 31, 2016
0ed4238
In ResourcesAI.py fixed hanging indents
LGM-Doyle Mar 31, 2016
6e63715
Compute values for report in reporting function
LGM-Doyle Apr 1, 2016
7be979e
Code review fixes from PR #580
LGM-Doyle Apr 3, 2016
b6122a6
Changed ResourcesAI.PlanetFocusInfo.current_output to a tuple
LGM-Doyle Apr 3, 2016
6317426
Added ResourcesAI.PlanetFocusInfo.can_change_focus()
LGM-Doyle Apr 3, 2016
c8cd5d2
More review changes from PR # 580
LGM-Doyle Apr 3, 2016
ec4ddbd
PEP8 for PR #580 review
LGM-Doyle Apr 4, 2016
acb78b9
Remove unused bool do_research from ResourcesAI.py
LGM-Doyle Apr 9, 2016
1920fdc
Replace PlanetInfo.can_change_focus() with PlanetInfo.planet.availble…
LGM-Doyle Apr 9, 2016
dbe6a1e
Code clarity changes to ResourcesAI.py for PR 580 review
LGM-Doyle Apr 24, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion default/AI/AIstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ def remove_fleet_role(self, fleet_id):
return

def session_start_cleanup(self):
ResourcesAI.newTargets.clear()
self.newlySplitFleets = {}
for fleetID in FleetUtilsAI.get_empire_fleet_ids():
self.get_fleet_role(fleetID)
Expand Down