AI: removed duplicate composite AI typedef used a unique_ptr for it

This commit is contained in:
Charles Dang 2018-05-01 11:59:43 +11:00
parent 18b50f06fb
commit 691276a0b7
2 changed files with 1 additions and 3 deletions

View file

@ -45,7 +45,7 @@ typedef std::multimap<map_location, map_location> move_map;
typedef std::map<map_location, pathfind::paths> moves_map;
class ai_composite;
typedef std::shared_ptr<ai_composite> ai_ptr;
typedef std::unique_ptr<ai_composite> composite_ai_ptr;
class attack_analysis;
typedef std::vector<attack_analysis> attacks_vector;

View file

@ -43,8 +43,6 @@ namespace events { class observer; }
namespace ai
{
typedef std::shared_ptr<ai_composite> composite_ai_ptr;
/**
* Base class that holds the AI and current AI parameters.
* It is an implementation detail.