AI interface cleaning
Posted: 09 Jun 2015, 22:39
This is a TD list/note (mostly for myself) of partial AI interface cleaning/refactoring.
- [-?] int SkirmishAII::GetTeamId()
[-] int Game::GetMyTeam()
[+] Team* Game::GetMyTeam()
[-] Teams* Game::GetTeams() //returns Teams object with only 1 method GetSize()
[+] std::vector<Team*> Game::GetTeams()
[-] std::vector<Team*> OOAICallback::GetAllyTeams()
[-] std::vector<Team*> OOAICallback::GetEnemyTeams() //returns everything that is not ally (enemy, neutral, gaia)
[+] bool Team::IsAllied(Team*)
[-] bool Team::HasAIController() //it is only here for awk-script to generate proper constructor, useless imho
[-] int SkirmishAIs::GetMax()
[+] int OOAICallback::GetMaxSkirmishAIs()
[-] SkirmishAIs* OOAICallback::GetSkirmishAIs()
[+] std::vector<SkirmishAI*> OOAICallback::GetSkirmishAIs()
[-] float Game::GetTeamResourceCurrent(int otherTeamId, int resourceId)
[-] float Game::GetTeamResourceIncome(int otherTeamId, int resourceId)
[-] float Game::GetTeamResourceUsage(int otherTeamId, int resourceId)
[+] float Game::GetTeamResourceCurrent(Team* otherTeam, Resource* resource)
[+] float Game::GetTeamResourceIncome(Team* otherTeam, Resource* resource)
[+] float Game::GetTeamResourceUsage(Team* otherTeam, Resource* resource)
i.e. replace as much ids with objects as possible. - Delete classes
Teams, SkirmishAIs, <Other>s - Delete deprecated methods
- OOAICallback::GetDebug() is not as full as in Legacy (missing overlay texture operations)
- OOAICallback::GetEngine() doesn't provide any info (not sure if necessary)